set_form_values
"set_form_values" statement. Sets (changes) the values displayed in 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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| form_key | string | The identifier of the form element whose values are to modified |
| values | array | The values to set in the form |
Examples
formvals = get_form_values("form105")
if (formvals.price != usd(formvals.price)) {
formvals.price = usd(formvals.price)
set_form_values("form105",formvals)
}