get_form_values

get_form_values Retrieves the values of a form within the application. Forms in the application are used to allow the user ot enter data (for example: name, address and phone number). Each form in the application stores the values entered into it and displays them whenever it is shown. The values stored in the form may be retrieved at any time via the get_form_values() function or changed via the set_form_values() function.

Format:

get_form_values(form_key)

Parameters:

Parameter Type Description
form_key string The identifier of the form element whose values are to be retrieved.

Returned Value:

Type Description
array The resulting values

Examples

 vals = get_form_values("form1085")
 if (!vals.email) {
     alert("You must submit an email!")
 }