Data Table Attach Form
Last updated
Last updated
The widget uses a default generic form for adding or editing records to the attached .
The Data Table Attach Form
block allows you to use your own form for adding and/or editing records.
The block consists of the following (from top to bottom):
New and Edit: Use the form for both adding and editing records.
New: Use the form only for adding records.
Edit: Use the form only for editing records.
NOTE: To use a different form for adding and editing records, use this block twice, specify the appropriate form, and select the Usage configuration setting.
The image below shows an example of the Data Table Attach Form block where the EmployeeForm is used for both adding and editing records.
Data Table: to choose the widget from your page.
Usage: for choosing when your custom form needs to be used:
Form Slug: configuration setting to specify the of the form to be shown.
Title: configuration setting to specify the title to use.