Search...
setFieldValues( )
Sets Wix Form field values.
Setting the invalid field values fires the onFieldValuesChange()
callback. The callback returns fields with the valid values previously set.
Note: The
WixFormsV2
element is only available in Wix Studio and Editor X.
Syntax
function setFieldValues(values: FormValues): void
setFieldValues Parameters
NAME
TYPE
DESCRIPTION
values
FormValues
Field names and values of a form.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
Set a form field value
Copy Code
1$w('#form').setFieldValues({2 first_name: "John",3});