以下のアプリにおいて文字列(1行)の変更イベントは取得できるのに、文字列(複数行)の変更イベントが取得できません。
認識違いがありますでしょうか。 御教授いただければ幸いです。
タイプ / フィールドコード
文字列(1行) / A
文字列(1行) / B
数値 / C
文字列(複数行) / D
文字列(複数行) / E
数値 / F
サンプル1 : Aへの入力で、全て動作します。
kintone.events.on([‘app.record.edit.change.A’], function(event) {
var record = event.record;
var stA = record[‘A’][‘value’]
var stD = record[‘D’][‘value’]
record[‘B’][‘value’] = record[‘A’][‘value’];
record[‘C’][‘value’] = stA.length;
record[‘E’][‘value’] = record[‘D’][‘value’];
record[‘F’][‘value’] = stD.length;
return event;
});
サンプル2 : Dに入力しても、何も動作しません。
kintone.events.on(‘app.record.edit.change.D’], function(event) {
var record = event.record;
var stA = record[‘A’][‘value’]
var stD = record[‘D’][‘value’]
record[‘B’][‘value’] = record[‘A’][‘value’];
record[‘C’][‘value’] = stA.length;
record[‘E’][‘value’] = record[‘D’][‘value’];
record[‘F’][‘value’] = stD.length;
return event;
});