教えてください。
文字列(一行)[“order”]にカンマ区切りの日付を複数日選択します(2020-02-03,2020-02-04,2020-02-06,2020-02-07,2020-02-08 ← こんな感じ )
日付をカウントし,結果を[“count”]に表示させたいのですが…
kintone.events.on([‘app.record.create.submit’,‘app.record.edit.submit’,‘app.record.index.edit.submit’], function (event) {
//取得したフィールドの値をカンマ区切りで配列に分割し、配列の長さを取得
var dates = record.order.value;
var array = dates.split(‘,’);
console.log(array.length);
//文字数フィールドに文字数を代入
rec[‘count’][‘value’] = result;
return event;
どのようにJSを書けば良いのか教えて頂ければ幸いです。
よろしくお願いいたします。