Form variables
The following variables can be used in formulas for setting the value of a form field. Some variables are only available in a context. For example, to get the latitude the user has to approve the browser or app to use the location services. A form score is only set if there are multiple choices options with values.
Context | Variable | Format | Description |
---|---|---|---|
user | user | string | The username of the user that it logger in. |
device | device.latitude | number | The latitude in decimal degrees from -90 to 90. |
device.longitude | number | The longitude in decimal degrees from -180 to 180. | |
device.altitude | number | The altitude above the earth surface in meters. | |
device.speed | number | The speed in meter per second. | |
device.heading | date | The compass heading. | |
device.acceleration | date | The combined acceleration in x-, y and z-direction. | |
device.time | date | The current time. | |
device.random | date | A random number between 0 and 1. | |
form | form.score | number | The total of scores for the selected options in a form. |
form.maxScore | number | The maximum score for all items in a form. |