kintone plugin series
Field Change Event
This page introduces events related to changing field values and adding or deleting table rows.
Event after changing field value
- Target Plugin
- Event
-
kb.change.[FieldCode]
- Properties of the Event Object
-
Property type Description type String The event type. container DOM - Field outside the table:
-
DIV element.
- Field in the table:
-
Table row to which the field belongs.
<div class="kb-scope"></div>
- Field outside the table of injector:
-
MAIN element.
<main class="kb-scope"></main>
record Object The record object.
- Sample
-
(() => { "use strict"; kb.event.on('kb.change.field_1_', (event) => { console.log(event); return event; }); })();
Events before adding table rows
- Target Plugin
- Event
-
kb.row.add.[FieldCode of the table field]
- Properties of the Event Object
-
Property type Description type String The event type. container DOM The table element.
<table class="kb-table"></table>
record Object The record object.
viewid Number The row index to be added. - Sample
-
(() => { "use strict"; kb.event.on('kb.row.add.field_9_', (event) => { console.log(event); return event; }); })();
The addition is canceled by returning the event object with the error property set to true.
Events before copying table row
- Target Plugin
- Event
-
kb.row.copy.[FieldCode of the table field]
- Properties of the Event Object
-
Property type Description type String The event type. container DOM The table element.
<table class="kb-table"></table>
record Object The record object.
viewid Number The row index to be added. - Sample
-
(() => { "use strict"; kb.event.on('kb.row.copy.field_9_', (event) => { console.log(event); return event; }); })();
The copy is canceled by returning the event object with the error property set to true.
Events before deleting table row
- Target Plugin
- Event
-
kb.row.del.[FieldCode of the table field]
- Properties of the Event Object
-
Property type Description type String The event type. container DOM The table element.
<table class="kb-table"></table>
record Object The record object.
viewid Number The row index before deletion. - Sample
-
(() => { "use strict"; kb.event.on('kb.row.del.field_9_', (event) => { console.log(event); return event; }); })();
The deletion is canceled by returning the event object with the error property set to true.