Search.../

getFieldValues( )

Gets Wix Form field values.

Note: The WixFormsV2 element is only available in Wix Studio and Editor X.

Syntax

function getFieldValues(): FormValues

getFieldValues Parameters

This function does not take any parameters.

Returns

Return Type:

FormValues
NAME
TYPE
DESCRIPTION
key:value
string

Key is the form field name, and value is the data submitted for the given field.

Was this helpful?

Get the form fields and values

Copy Code
1const formFieldValues = $w('#form').getFieldValues();
2
3/* Resolves to:
4 *
5 * {
6 * "first_name": "John"
7 * "last_name": "Doe",
8 * "email": "john.doe@mail.com"
9 * }
10 *
11*/