Revert "apply pattern when username change" for pvc-desktop-view.js
This reverts the changes to pvc-desktop-view.js from commit 96315d5.
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,25 +1,6 @@
|
|||||||
(function () {
|
(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/**
|
|
||||||
* 新規登録・編集画面保存時の処理
|
|
||||||
* 氏名に複数のユーザーが設定されている場合は、エラーを表示して保存をキャンセルする
|
|
||||||
*/
|
|
||||||
kintone.events.on(
|
|
||||||
["app.record.create.submit", "app.record.edit.submit"],
|
|
||||||
function (event) {
|
|
||||||
const record = event.record;
|
|
||||||
|
|
||||||
// 氏名に複数のユーザーが設定されている場合は、エラーを表示して保存をキャンセル
|
|
||||||
if (record.氏名.value.length > 1) {
|
|
||||||
event.error = "氏名にユーザーが複数設定されています";
|
|
||||||
return event;
|
|
||||||
}
|
|
||||||
|
|
||||||
return event;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 一覧画面の編集保存時の処理
|
* 一覧画面の編集保存時の処理
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user