setFieldValues()

setFieldValues allows you to set custom values for the current user of your form on specific form and hidden fields.

setFieldValues() is updates the field values of the current user and saves the new data to our database. Pass in an object of the shape {<fieldId>: <fieldValue>} where fieldId can be either a form field or hidden field ID. If fieldId corresponds to a file upload field, fieldValue should be a Filearrow-up-right object. If fieldId corresponds to a signature field, fieldValue should be a Base64arrow-up-right PNG. Otherwise, fieldValue expects a string.

Last updated

Was this helpful?