1. DE

Variables

You can use variables when setting default values for input fields. When the form is displayed, these variables are replaced with a value that is generated dynamically at runtime. ‘Dynamically at runtime’ means that the information required for the value is not fetched until the point in time when the user accesses the form.

For example, you can include the current date in an input field by using the ${date} variable. The current date is checked and added to the input field when the user accesses the form. If the user closes the form and accesses it again a few days later, the value for the ${date} variable will be generated again, to ensure that the date in the input field is always current.
If you add the ${serverDate} variable to a hidden field, you can find out when users accessed the form.

You can also use variables for calculated value fields and for mail actions.

You can combine variables with other variables and with text for use in input fields, for example. One example of this would be creating a default value for an input field with the aim of displaying the date and time:

Input: ${clientDate} ${clientTime}

Output: 01/01/21 12:15 PM

Formcentric provides you with the following variables:

Variable Meaning
date This variable returns the date on which users completed the form. The time zone used is Coordinated Universal Time (UTC+00:00). The date format used depends on the language settings in the user’s browser. If the browser is set to use English (en) as the language, then the date will be shown in the format MM/DD/YY, e.g. 12/25/22.
serverDate This variable returns the date on which users completed the form. The time zone used is the server’s time zone. The date format used depends on the language settings in the user’s browser. If the browser is set to use English (en) as the language, then the date will be shown in the format MM/DD/YY, e.g. 12/25/22.
clientDate This variable returns the date on which users completed the form. The time zone used is the user’s time zone. The date format used depends on the language settings in the user’s browser. If the browser is set to use English (en) as the language, then the date will be shown in the format MM/DD/YY, e.g. 12/25/22.
time This variable returns the time of day on which users completed the form. The time zone used is Coordinated Universal Time (UTC+00:00). The time format used depends on the language settings in the user’s browser. If the browser is set to use English (en) as the language, then the time will be shown in the format hh:mm AM/PM, e.g. 10:51 AM.
serverTime This variable returns the time of day on which users completed the form. The time zone used is the server’s time zone. The time format used depends on the language settings in the user’s browser. If the browser is set to use English (en) as the language, then the time will be shown in the format hh:mm AM/PM, e.g. 10:51 AM.
clientTime This variable returns the time of day on which users completed the form. The time zone used is the user’s time zone. The time format used depends on the language settings in the user’s browser. If the browser is set to use English (en) as the language, then the time will be shown in the format hh:mm AM/PM, e.g. 10:51 AM.
language This variable displays the language that users have set in their browser. For example, de for German or en for English.
timezone This variable displays the time zone that users have set in their browser.
ip This variable displays the IP address that has been assigned to the user’s device (e.g. computer or mobile phone) by their internet provider.
userAgent This variable displays the identification string for the browser and the device that the user is using to fill out the form.
referer This variable displays the URL from which users accessed this web page containing the form.