Set Field Values in Currently Open Form
Overview
Set field values in the create form or detail form opened on the client side.
Parameter Configuration
| Parameter | Description |
|---|---|
| Data Table | The data table to which the opened record form belongs |
| Field Value | Set the default value of the field. Dynamic content can be specified using expressions to get context variables |
Notes
For the
lookup listtype, if you want to create new data in the form, do not set theidfield in the data to be passed.In the form editing page, the form field storage mode is save after modifying a single field
- When setting the value of a list-type (associated list, sub-object, lookup list) field and the field is hidden, this operation will be invalid, and you need to call automation to change the data yourself.
Fields that are not displayed in the form can also be assigned values in this way (they will be automatically saved when saved)
For list-type fields
sub-object,associated list, andlookup list, an array type needs to be passed. For example, if the data table structure displayed by the list type is:Field Identifier Field Name Field Type name Name Single-line Text age Age Number The required data structure to be passed is:
text${ [ { 'id':'0001', 'name':'Zhang San', 'age':20 }, // Updated data { 'name':'Li Si', 'age':22 }, // New data { 'id':'0002', '$deleted':true } // Deleted data ] }In the above example:
- If the
idattribute is not set, it means the data is newly added. - If the
idattribute has a value and$deletedis set totrue, it means to delete this data. - If the
idattribute has a value, it means to update this record. Fields not listed will not be updated.
- If the

