何を実現したいのかを書きましょう
テーブル内にあるドロップダウンリストで「その他」を選択した時に同じテーブル内にある「品名」のフィールドを非表示にしたいと考えています。
発生した問題やエラーメッセージを具体的に書きましょう
ドロップダウンの選択でテーブル内の表示が何も変わりません。
実行したコードをコピー&ペーストしましょう
(function(){
"use strict";
kintone.events.on([
'app.record.create.show',
'app.record.create.change.ラジオボタン_0',
'app.record.create.change.テーブル',
'app.record.create.change.ドロップダウン',
'app.record.detail.show',
'app.record.edit.show',
'app.record.edit.change.ラジオボタン_0',
'app.record.edit.change.テーブル',
'app.record.edit.change.ドロップダウン',
],function(event){
kintone.app.record.setFieldShown('申請部署', false);
const record = event.record;
if (record.ドロップダウン.value == 'その他') {
//表示
kintone.app.record.setFieldShown('品名', true);
} else {
//非表示
kintone.app.record.setFieldShown('品名', false);
}