Boost!for kintone
EVENTS

Events

These are the types of field value change events and the properties of the event object passed to the event handler.

01

Field value change event

Event type
bst.change.[field code]
Properties of the event object
Property Type Description
type String

Event type

container DOM

Field outside a table: DIV element

Field in a table: the table row to which the field belongs

<div class="bst-scope"></div>

Field outside a table in Boost! Injector: MAIN element

<main class="bst-scope"></main>
record Object

Record object

Sample
(() => {
	"use strict";
	bst.event.on('bst.change.field_1_', (event) => {
		console.log(event);
		return event;
	});
})();
02

Before table row add event

Event type
bst.row.add.[table field code]
Properties of the event object
Property Type Description
type String

Event type

container DOM

Table element

<table class="bst-table"></table>
record Object

Record object

rowindex Number

Index of the row to be added

Sample
(() => {
	"use strict";
	bst.event.on('bst.row.add.field_9_', (event) => {
		console.log(event);
		return event;
	});
})();

If you set the error property of the event object to true and return it, adding the row is canceled.

03

Before table row duplicate event

Event type
bst.row.copy.[table field code]
Properties of the event object
Property Type Description
type String

Event type

container DOM

Table element

<table class="bst-table"></table>
record Object

Record object

rowindex Number

Index of the row to be added

Sample
(() => {
	"use strict";
	bst.event.on('bst.row.copy.field_9_', (event) => {
		console.log(event);
		return event;
	});
})();

If you set the error property of the event object to true and return it, duplicating the row is canceled.

04

Before table row delete event

Event type
bst.row.del.[table field code]
Properties of the event object
Property Type Description
type String

Event type

container DOM

Table element

<table class="bst-table"></table>
record Object

Record object

rowindex Number

Index of the row to be deleted

Sample
(() => {
	"use strict";
	bst.event.on('bst.row.del.field_9_', (event) => {
		console.log(event);
		return event;
	});
})();

If you set the error property of the event object to true and return it, deleting the row is canceled.