0
アイテムが選択ボックス(オプション)で選択された後、ID 'custrecord_hrx_vendor_status_list' を非表示にしたいとします。フィールド変更時に他のフィールドを隠す - Suite Script 2.0
ここに私のコードです。 /** * @NApiVersion 2.xの * @NScriptType ClientScript */
([ 'N/UI/serverWidget'、 'N /エラー']、
function (error) {
function fieldChanged(context) {
var currentRecord = context.currentRecord;
var fieldId = context.fieldId;
if(fieldId === 'custrecord_hrx_negotiation_type'){
var selectedType = currentRecord.getText(fieldId);
console.log(currentRecord.getField('custrecord_hrx_vendor_status_list'));
currentRecord.updateDisplayType({
id: 'custrecord_hrx_vendor_status_list',
displayType: serverWidget.FieldDisplayType.HIDDEN
});
}
}
return {
fieldChanged: fieldChanged
}
}
)を定義します。エラーメッセージは、あなたが利用できないモジュールをロードしようとしている、言うように
----ここはERROR
ワークス。ありがとうございます! – jebeeee