g_form.getReference() Method

Returns a Reference Object's record client-side

  1. Request a record from the database
  2. Requested record returned from the database
  3. 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)

results matching ""

    No results matching ""