Building Apps with Jigx
...
Jigs (screens)
Forms
Updating a Record
3min
Learn how to update an existing record using a form.
Before updating the record, we have to bind the existing record to the form. For that purpose, the form component has an option called initialValues which can be used to set all form fields to the current values at once.
In this example, we will use an input parameter recordId (see Inputs & Outputs) to query a data record from the Dynamic Data table and then bind that record to the initialValues of our form.
Please note: The optional isDocument option of our datasource will ensure that only the first record will be returned by our query as a JSON object.
In this section, we will gonna have deep look at how you can update your records in the database or delete them with Jig form.
Updated 04 May 2023
Did this page help you?