Update Field
Updates the values of all the fields mentioned in the payload object.
Parameter
Parameters | type | description |
---|---|---|
payload | Object | An object where the key represents fieldId (string) and the values correspond to their respective field type (like number for rating/slider, string for text/textarea, etc.) |
Syntax
or
Returns
Returns the updated value of the field, with the datatype of the value determined by the specific field type.
Example
To update the value of the ratings field in your employee data form, mention the field ID, ratingField, and the desired value, 4, in the payload. The form will be updated with the new value.
You can also update any number of fields in one payload.