Skip to main content

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.

ContextVariableFormatDescription
useruserstringThe username of the user that it logger in.
devicedevice.latitudenumberThe latitude in decimal degrees from -90 to 90.
device.longitudenumberThe longitude in decimal degrees from -180 to 180.
device.altitudenumberThe altitude above the earth surface in meters.
device.speednumberThe speed in meter per second.
device.headingdateThe compass heading.
device.accelerationdateThe combined acceleration in x-, y and z-direction.
device.timedateThe current time.
device.randomdateA random number between 0 and 1.
formform.scorenumberThe total of scores for the selected options in a form.
form.maxScorenumberThe maximum score for all items in a form.