g_form.getReference() Method
Returns a Reference Object's record client-side
- Request a record from the database
- Requested record returned from the database
- Execute logic after the object returns from the server
Important
- The g_form.getReference() method runs asynchronously when a callback function is used.
- When the record is returned to the calling script, the logic in the callback function executes.
- If the callback function is omitted, the g_form.getReference() method runs synchronously.
Syntax
gform.getReference(field_name, callback_function)