Updating a Record
Populating a form with initial values
title: Update Form
description: My first update form by Jigx
type: jig.default
datasources:
employee-detail:
type: datasource.sqlite
options:
provider: DATA_PROVIDER_DYNAMIC
entities:
- entity: default/form
query: SELECT id, '$.firstname', '$.lastname', '$.email', '$.phone' FROM [default/form] WHERE id = @recordId
queryParameters:
recordId: [email protected]
isDocument: true
children:
- type: component.form
instanceId: simple-form
options:
initialValues: [email protected]
children:
- type: component.text-field
instanceId: firstname
options:
label: First name
- type: component.text-field
instanceId: lastname
options:
label: Last name
- type: component.email-field
instanceId: email
options:
label: Email
keyboardType: email-address
- type: component.number-field
instanceId: phone
options:
label: Phone number
keyboardType: number-padUpdating the record
Update with submit-form action
Update form - execute-entity action
Last updated
Was this helpful?