Skip to content

Globals Variables ​

When a hook script is called on your FileMaker Server, the following global variables are made available to your scripts. You can use them to view data sent from the client's browser and push data back to hydrate their web session.

This page contains a summary of all the variables; subsequent pages in this section go into more detail about how each one should be used.

$$Var NameDescription
****$$BF_ModelThis is the form's entire data model
****$$BF_AppKeys passed in will be merged with the current app model. (0.8.32+) This global is not populated with the current app data, it is outbound only.
$$BF_StateThe state object holds various data related to the browser environment.
$$BF_UserThe user object when a user has been authenticated.
$$BF_QueryKey value pairs of the URL query parameters. Useful for direct linking (smart links) to a page.
$$BF_CookieObject containing browser cookies (Helper > v1.2)
$$BF_FormThe formSchema of the current page when applicable. This data may not be present of reduced payload options are set for the current layout.
$$BF_PayloadThis var has the entire payload object, most of it is over written at the end or the scripts, so if you mutate it, there is a good chance your data will be overwritten.

During onBeforeRegistration, $$BF_User instead contains registration input before the new Helper login exists. For OAuth signup this includes email, nameFirst, and nameLast; it is not an authenticated user record. See OAuth registration names.

Klai Studio documentation