Skip to content

Instantly share code, notes, and snippets.

View yokotaso's full-sized avatar
🤟

tomoya yokota yokotaso

🤟
View GitHub Profile
@yokotaso
yokotaso / empty-validator.js
Created February 7, 2019 11:08
sample code empty validator(Developer network)
import v8n from "v8n";
export const isEmpty = v8n().undefined();
@yokotaso
yokotaso / kintone-create-edit-submit.js
Created February 7, 2019 11:09
kintone create edit submit with module (Developer network)
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 = "必須項目です!";