GlideUser - getClientData(string key)

Gets a session client value previously set with putClientData().

Session client data is a set of named strings that may be setup on the server (using putClientData()) that then may be used by client scripts (using getClientData()). Can be used during form load time to get information that the client script needs to make decisions about the form, for example, which fields should be visible.

Table 1. Parameters
Name Type Description
Key String Name of the client data to retrieve.
Table 2. Returns
Type Description
String Value of the client data.

var loginLanguage = g_user.getClientData("loginlanguage");