Auto-populate Table Rows
Contents
Overview
This article introduces how to auto-populate Table rows of an App's record.
Sample Image
When the user creates a new record, the Table field is automatically populated with data. The number of rows to be populated and the table values are specified within the code.
Prepare the App
Create an App with the following fields and settings.
Field Type | Field Name | Field Code | Notes |
---|---|---|---|
Table | Table | Table | See the table below for the fields to place inside. |
Set the following fields and settings for the Table field.
Field Type | Field Name | Field Code |
---|---|---|
Number | Number | Number |
Text | Animals | Animals |
The form should look like the following image:
Sample code
Prepare the following JavaScript code in a text editor and navigate to the Kintone App's settings. Upload the file into the Upload JavaScript for PC option of the JavaScript and CSS Customization settings .
|
|
After saving the settings and clicking on Update App, start to add a new record into the App. The record's Table field should automatically populate with data.