The GlideForm API is exposed within client-side scripts as the g_form variable. This API provides methods for interacting with forms and fields, adding messages for the user, adding and removing options from a drop-down field, and more.
In the following section, we'll discuss some of the more commonly used and useful methods of the GlideForm API, and see how they can be put to use.