The action can be used on a form to save data into any of the data types (check out Forms to learn more about forms). submit-form has to be used on a default jig with the form component. A typical use case of submit-form is saving or updating the records in a table.
The submit-form action can be set up as a primary action on default jig with a form component
- Your jig type has to be jig.default
- Action must be submit-form with the title of the button, and you need to specify: the id of the form that you want to save, provider, entity, method and if you are using SQL, REST, SALESFORCE, SOAP you need to specify the function that you are calling.
- On the default jig you need to create a component. form, the instance Id, which will be the id of the form.
- In the form component, you can use the form-allowed components, and the instanceId of each component will be the name of the column of the data row that's gonna be saved.
Example of submit-form to save a new employee into the dynamic-data table. The first name, last name, and phone number will be saved in the employees' data table.
See the full example using dynamic data in GitHub.