Created
February 7, 2019 11:09
-
-
Save yokotaso/e0b5122ab932115faf423101b2a068cc to your computer and use it in GitHub Desktop.
kintone create edit submit with module (Developer network)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {isEmpty} from "./empty-validator"; | |
(() => { | |
const events = [ | |
"app.record.create.submit", | |
"app.record.edit.submit" | |
]; | |
kintone.events.on(events, (ev) => { | |
if(isEmpty.test(ev.record.文字列__1行_.value)) { | |
ev.record.文字列__1行_.error = "必須項目です!"; | |
} | |
return ev; | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment