System Variables

System Variables

System variables are a special class of predefined variables, which are already defined by the system, and values are assigned by the system it self. These variables are read-only. They contain values that cannot or should not be changed by the user. 

These variables are used to refer to common information like the email id of the logged in user, or the email id of the app admin, the current date, and so on.
 

Date Variables

The table given below lists the Zoho variables and value returned by the variables.

VariableReturns
zoho.currentdate

Current date in the format specified in Application settings.

zoho.currenttime

Current date and time in the format specified in Application settings.


String Variables

The table given below lists the Zoho variables and value returned by the variables in a private and public application.

VariablePrivate app / Logged-in userPublic app / Logged-in userPublic app / Public user
zoho.loginuserUsername of the currently logged-in userPublicPublic
zoho.loginuseridEmail address of the currently logged-in userNullNull


​Other Variables

VariableReturns
zoho.adminuserUsername of the Application owner
zoho.adminuseridEmail address of the Application owner

zoho.appname

(applicable only to Zoho Creator)

Application link name of the current application
zoho.ipaddressPublic IP address of the current user

zoho.appuri

(applicable only to Zoho Creator)

Application details in the format:
/<admin_username>/<application_link_name>/

A few system variables have values that differ from user to user. Which means, they are specific to the user account. For example the system variable zoho.loginuserid which returns the email id of the logged in user. For every individual account, this value will vary. And a few system variables are the same for all user accounts. For example zoho.currentdate which returns the current date value.

The availability of system variables depends on the product you use. 

Examples

1) The following snippet sets the Date field with the current date when the form loads.

input.Date = zoho.currentdate;

2) The following snippet returns the link to the required application.

baseURL = (("http://app.zohocreator.com/" + zoho.adminuser) + "/") + zoho.appname;

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com