Table
This field is used to enter data in the form of a horizontal table where each row can have as many fields as the user desires.
{"type": "table","id": "prodClaimsTable","label": "Product Claims","showInTable": true,"isRequired": true,"rowsCount": {"max": 5},"fields": [{"type": "text","id": "prodName","label": "Product Name"},{"type": "number","id": "num","label": "Product Number"}]}
The above example creates a table field where each entry has 2 fields, a text field which stores Product name, and a number field which stores a Product Number.
Field Attributes
Name | Type | Description |
---|---|---|
id | string | Assigns a name for the given field on the backend. This name can be used to refer this field in another field |
label | string | Adds a label to the given field |
isRequired | boolean | Makes a field mandatory |
showInTable | boolean | Displays the field in a table after saving the entry |
rowsCount | number | Indicates the maximum and minimum numbers of rows in the table |