# ルックアップにて取得してコピーした先のフィールドの文字列によって、  グループフィールドの表示/非表示を切り替えたい

**URL:** https://community.cybozu.dev/t/topic/6895
**Category:** kintone 開発相談
**Created:** [2020 年 12 月 17 日午前 11:29 UTC](https://community.cybozu.dev/t/topic/6895 "2020-12-17T11:29:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Legacy\_Account2519](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@Legacy\_Account2519](https://community.cybozu.dev/u/Legacy_Account2519)
#### Post date: [2020 年 12 月 17 日午前 11:29 UTC](https://community.cybozu.dev/t/topic/6895/1 "2020-12-17T11:29:48Z")

</div>

ルックアップにて取得してコピーした先のフィールドの文字列によって、

グループフィールドの表示/非表示を切り替えたいのですが

どのようにすればよろしいでしょうか。

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![Legacy\_Account1740](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@Legacy\_Account1740](https://community.cybozu.dev/u/Legacy_Account1740)
#### Post date: [2020 年 12 月 18 日午前 12:25 UTC](https://community.cybozu.dev/t/topic/6895/2 "2020-12-18T00:25:27Z")

</div>

mさん

お世話になっております．

ルックアップフィールド自体のchangeイベントは検知できないので，「ほかのフィールドのコピー」で指定したフィールドのchangeイベントで処理すると良いです．  
[https://developer.cybozu.io/hc/ja/articles/201941984#step3](https://developer.cybozu.io/hc/ja/articles/201941984#step3)

グループフィールドの開閉は，下記APIで処理できます．  
[https://developer.cybozu.io/hc/ja/articles/207721773](https://developer.cybozu.io/hc/ja/articles/207721773)

---

<div class="post-metadata">

### Author: ![Legacy\_Account2519](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@Legacy\_Account2519](https://community.cybozu.dev/u/Legacy_Account2519)
#### Post date: [2020 年 12 月 18 日午前 3:05 UTC](https://community.cybozu.dev/t/topic/6895/3 "2020-12-18T03:05:23Z")

</div>

江田様

お世話になります。

ご丁寧にリンクまでいただきありがとうございます。

こちら参考に書いてみます。

&nbsp;
