Add Buttons to the Record Details Page
Overview
This article introduces how to place a button on Kintone's record details page. The button is placed in a Blank space field of the Kintone App's form.
Sample Image
In this example, the element of the Blank space field is obtained, and a button is placed inside. Clicking the button runs an alert script.
Prepare the App
Create an App
and include a Blank space field in the form. Update the Element ID of the Blank space field to space_for_button.
Sample Code
Prepare the following JavaScript code in a text editor and navigate to the Kintone App's settings. Upload the file into the
JavaScript and CSS Customization settings
.
|
|
After saving the settings and clicking on Update App, navigate to the Record details page. A button should appear where the Blank space field is.
Modifications
In this example, the button was placed in the Blank space field. It can alternatively be placed in the header of the Record Details page by retrieving the element with the kintone.app.getHeaderMenuSpaceElement method.