It is used to automatically create data fields (text, date, selection, etc.) based on a table and to save data using the “Save Record” action; the Id field is automatically generated using “New Guid.”
The form element is one of the fundamental UI elements that enables you to collect, edit, and display data in your applications quickly and flexibly. We’ll explore this element—which combines text inputs, selection fields, date fields, counters, switches, and many other form elements into a single structure—through the “Creating a Registration Form” scenario.
To get started, create the table on the screen from the Data Sources Tables section. Then, drag the Form element onto the page; in the dialog box that appears, select your table and data source, and save. Place a Button element below the Form element, align it to the right and center it using the Styling section. Update the text in the Button element’s Value field. Use “Add Action” to bind the “Save Record” action to the onClick event, select your table, and select all the fields that appear. Define each field with appropriate values using “Components”; set the ‘Id’ field to “Default, New Guid.”
When the application is tested, you’ll see that the record is successfully saved to the data table once the form elements are filled out and submitted.