February 2018
Intermediate to advanced
226 pages
5h 13m
English
I would say that GlideForm or g_form is the most used client-side class. It is mainly used for getting data from the fields on the form and setting values to those fields as well. We can also change elements of those fields using g_form.
We'll start by looking at how to get and set values from and into fields:
var stateValue = g_form.getValue('state');
The string value inside the speech marks is the database name for the field. Make sure you use the name rather than the label when getting a value using g_form. The getValue method essentially puts the value of a field into a variable for you. This then allows you to use that variable to check against other data or pass as a parameter into a function:
g_form.setValue('state', '6'); ...Read now
Unlock full access