Apply formulas in any field property featuring the hammer icon to dynamically calculate values, format text, run logic, or extract system data.
| Function | Description | Example |
| USEREMAIL() | Returns the logged-in user's email address. | USEREMAIL() (Result: 'alex@company.com') |
| USERFIRSTNAME() | Returns the logged-in user's first name. | USERFIRSTNAME() (Result: 'Alex') |
| USERLASTNAME() | Returns the logged-in user's last name. | USERLASTNAME() (Result: 'Smith') |
| USEREXTERNALID() | Returns the logged-in user's external ID. | USEREXTERNALID() (Result: 'EMP-9021') |
| USERINGROUP('group') | Returns true if the user belongs to the specified group name or external ID. | USERINGROUP('Admins') (Result: true) |
| ORGNAME() | Returns the organization name. | ORGNAME() (Result: 'Acme Corp') |
| GLOBALVAL('key') | Retrieves the Global Value for the specified key. | GLOBALVAL('TaxRate') (Result: '0.15') |
| ORGMETA('key') | Retrieves the Organization Metadata value for the specified key. | ORGMETA('billing_id') (Result: 'BILL-402') |
| USERMETA('key') | Retrieves the User Metadata value for the specified key. | USERMETA('region_code') (Result: 'US-WEST') |
| DEVICENAME() | Returns the device manufacturer and model information. | DEVICENAME() (Result: 'Apple iPhone 14 Pro') |
| DEVICEOS() | Returns the device operating system. | DEVICEOS() (Result: 'iOS') |
| DEVICEOSVERSION() | Returns the operating system version on the device. | DEVICEOSVERSION() (Result: '16.4') |
| DEVICEALIAS() | Returns the user-set name of the device. Note for iOS: iOS 15 and lower return the user-set name; iOS 16 and higher return the device model (similar to DEVICENAME()). | DEVICEALIAS() (Result: 'Field Tech iPad') |
| APPVERSION() | Returns the version of the app installed on the device. | APPVERSION() (Result: '4.12.0') |
| SCREENVERSION() | Returns the version number of the current form screen. | SCREENVERSION() (Result: 3) |
| SCREENDATE() | Returns the date and time the current screen was last updated (UTC). | SCREENDATE() (Result: '2026-08-01 14:00:00') |
| VAL('dataname') | Evaluates a static value on load to prevent circular logic. Intended for use when a dynamic dependency would lead to circular reference issues. It is not dynamic when used alone and returns the value of the field referenced. | IF(ISBLANK({{f1}}), VAL('f2'), {{f1}}) This formula evaluates once when the form loads and thereafter only when the value of {{f1}} changes. It is not dynamically dependent on 'f2' because it does not contain the dynamic reference {{f2}}. When the value of 'f2' changes, this formula will not re-evaluate. |
| COUNTER([padWidth]) | Returns a number that increments by 1 each time a new form entry is created in the app. The optional parameter left-pads the number with zeros to the given width. Combine it with user data (e.g., with CONCAT()) to generate unique numbers. Note: Counter numbers are device-specific. | COUNTER() (Result: '42') COUNTER(5) (Result: '00042') |
| EVAL(formula, arg0, arg1, ...) | Evaluates a formula that uses generic indexed placeholders ({{0}}, {{1}}, ...), substituting the listed values in order. The formula can also come from a data source column. Learn more: Evaluate Text as a Formula | EVAL("IF({{0}} = {{1}}, 'Y', 'N')", 'A', 'A') (Result: 'Y') EVAL({{ds[0]}}, {{textField1}}, {{textField2}}) Uses a formula stored in a data source column. |
| TASK('key') | Gets the value for the specified key from the linked Task (app only). Task keys: ADDITIONALINFO, COMPLETEAT, COMPLETEATLAT, COMPLETEATLON, EXTERNALID, ID, ISOVERDUE, NAME, PERFORMWITHIN, COMPLETEBY, COMPLETEBYUTC, STARTTIME, STARTTIMEUTC. | TASK('COMPLETEAT') (Result: '123 Main St') |
| USERLANG() | Returns the user's app language setting. Useful in visibility formulas, e.g., to show only English fields to English-speaking users. | USERLANG() (Result: 'English') IF(USERLANG() = 'English', true, false) |
Note: Device dates and times may be inaccurate if the device's local time is incorrect.
| Function | Description | Example |
| TODAY() | Current local date reported by the device. | TODAY() (Result: '2026-08-09') |
| NOW() | Current local date and time reported by the device. | NOW() (Result: '2026-08-09 12:30:00') |
| UTCTODAY() | Current UTC (GMT) date. | UTCTODAY() (Result: '2026-08-09') |
| UTCNOW() | Current UTC (GMT) date and time. | UTCNOW() (Result: '2026-08-09 02:30:00') |
| TASK-FIRSTAVAILABLE('group') | Identifier for automatic assignment to the first available user. Useful for creating new Tasks that are randomly assigned to the first available user. Also handy as the 'Send Form To' value of a Process Step field. The optional parameter restricts assignment to users within the given User Group name or external ID. | TASK-FIRSTAVAILABLE() Assigns randomly to the first available user. TASK-FIRSTAVAILABLE('mygroup') Assigns randomly to the first available user in the User Group named 'mygroup'. TASK-FIRSTAVAILABLE({{myfield}}) Assigns randomly to the first available user in the User Group name or ID matching the answer of a field. |
| TASK-FIRSTTOCLAIM('group') | Identifier that makes a Task visible to all eligible users until the first user claims it. Also handy as a Process Step field's 'Send Form To' value. The optional parameter restricts visibility to users within the given User Group name or external ID. | TASK-FIRSTTOCLAIM() Task is visible to all users. TASK-FIRSTTOCLAIM('mygroup') Visible to users in the User Group named 'mygroup'. TASK-FIRSTTOCLAIM({{myfield}}) Visible to users in the User Group name or ID matching the answer of the field 'myfield'. |
Note: Always put a space on either side of arithmetic operators (+, -, *, DIV, MOD).
| Function | Description | Example |
| + / - / * | Addition, subtraction, and multiplication operators. | 10 * 2.5 (Result: 25) {{f1}} + {{f2}} (Result: 12.5) |
| DIV | Division operator. | 10 DIV 2 (Result: 5) |
| MOD | Modulo operator (returns the remainder of a division). | 10 MOD 3 (Result: 1) |
| RANDOM([length]) | Returns a random decimal between 0 and 1, or a random integer of the given length. | RANDOM() (Result: 0.7) RANDOM(4) (Result: 7492) |
| ROUND(val, places) | Rounds a number to the specified number of decimal places. | ROUND(4.9675, 2) (Result: 4.97) |
| POW(val, power) | Raises a value to the specified power. | POW(2, 3) (Result: 8) |
| TRUNC(val) | Truncates a number to an integer (drops the decimal places). | TRUNC(5.9) (Result: 5) |
| MAX(val1, val2) | Returns the larger of two numbers. | MAX(12, 45) (Result: 45) |
| MIN(val1, val2) | Returns the smaller of two numbers. | MIN(12, 45) (Result: 12) |
| CEILING(val) | Returns the smallest integer greater than or equal to the value. | CEILING(4.1) (Result: 5) |
| FLOOR(val) | Returns the largest integer less than or equal to the value. | FLOOR(4.9) (Result: 4) |
| ABS(val) | Returns the absolute (positive) value of a number. | ABS(-5.6) (Result: 5.6) |
Note: In most cases, static text in these functions can be replaced with a form field's value by referencing its {{dataName}}.
| Function | Description | Example |
| STRING-LENGTH(val) | Returns the number of characters in a string. | STRING-LENGTH('eForms') (Result: 6) STRING-LENGTH({{dataName}}) |
| SUBSTR(val, start, [len]) | Extracts a substring starting at the zero-based start index and running to the end of the value, unless an optional character length is specified. | SUBSTR('ABCDEF', 2) (Result: 'CDEF') SUBSTR('ABCDEF', 2, 1) (Result: 'C') |
| CONCAT(val1, val2, ...) | Joins multiple values together end-to-end. | CONCAT('John', ' ', 'Doe') (Result: 'John Doe') CONCAT(USERFIRSTNAME(), ' ', USERLASTNAME()) (Result: 'John Doe') |
| JOIN('separator', values...) | Joins values together, separated by the given separator. | JOIN('-', 'A', 'B', 'C') (Result: 'A-B-C') JOIN('_', {{f1}}, {{f2}}, {{f3}}) (Result: 'A_B_C') JOIN('|', {{repeatField}}) (Result: 'A|B|C') |
| SUBSTITUTE(val, old, new) | Replaces all instances of the old text with the new text. | SUBSTITUTE('reach', 'r', 'p') (Result: 'peach') SUBSTITUTE({{notes}}, '|', ', ') |
| LOWER(val) | Converts all characters to lowercase. | LOWER('ABC') (Result: 'abc') |
| UPPER(val) | Converts all characters to uppercase. | UPPER('abc') (Result: 'ABC') |
| STARTSWITH(val, prefix) | Returns true if the string begins with the given prefix. | STARTSWITH('eForms Mobile', 'eForms') (Result: true) |
| CONTAINS(val, text) | Returns true if the text appears anywhere in the value. Matching is case-insensitive. | CONTAINS('eForms Mobile', 'mob') (Result: true) |
| INDEXOF(input, val, [start], [count]) | Returns the zero-based position of the first match of the value in the input, or -1 if not found. Optional start index (zero-based) begins the search at that position; optional count sets how many characters to search. | INDEXOF('AAA|BBB|CCC', 'A') (Result: 0) INDEXOF('AAA|BBB|CCC', 'BD') (Result: -1) INDEXOF('AAA|BBB|CCC', 'B', 5) (Result: 5) INDEXOF('AAA|BBB|CCC', 'B', 4, 3) (Result: 4) INDEXOF('AAA|BBB|CCC', '|', 4, 3) (Result: 7) |
| SPLIT(text, [separator], [index]) | Splits a string into a List of values using the specified delimiter. The resulting List can be used in aggregate functions such as SUM() or COUNT(). If an optional zero-based index is specified, returns the single value at that index, or BLANK if the index is outside the list. | SPLIT('A,B,C', ',', 0) (Result: 'A') SPLIT('AAA|BBB|CCC', '|', 0) (Result: 'AAA') SPLIT('AAA,BBB,CCC', ',') (Result: a List with AAA, BBB and CCC as its elements) MAX(SPLIT('1-2-5-4-3', '-')) (Result: 5) SPLIT('AAA,BBB,CCC', ',', 99) (Result: BLANK, as there are not 100 elements in the list) SPLIT({{f1}}, ',', 2) Returns the 3rd element in the comma-separated list. |
| RANDOMSTR(length) | Generates a random alphanumeric string of the given length. | RANDOMSTR(5) (Result: 'K9x2P') |
| GUID() | Generates a new Globally Unique Identifier. Learn more: Universally unique identifier – Wikipedia | GUID() (Result: 'a3b8…91c2') |
| '\n' | New line character. Use it in any string to output text on a new line. If saving the output to a data source, set the column data type to "Multiline Text"; otherwise, only the first line will be visible. | CONCAT('Line 1', '\n', 'Line 2') (Result: 'Line 1' and 'Line 2' on separate lines) SUBSTITUTE({{myfield}}, '|', '\n') Replaces each | with a new line. |
Note: Unit specifiers are YY (years), MM (months), DD (days), HH (hours), MI (minutes), and SS (seconds). Additional format specifiers can be found here: Standard date and time format strings – .NET
| Function | Description | Example |
| DATEADD(date, num, unit) | Adds the specified number of units to the starting date. | DATEADD('2026-01-01', 6, 'MM') (Result: '2026-07-01') DATEADD({{mydatefield}}, 6, 'MM') |
| DATEDIFF(d1, d2, unit, [noWeekends]) | Returns the time difference between two dates in the given unit. Set the optional parameter to true() to exclude weekends. | DATEDIFF('2026-08-01', '2026-08-09', 'DD') (Result: 8) DATEDIFF('2026-08-01', '2026-08-09', 'DD', true()) (Result: 5) |
| DATETOLOCAL(utcDate) | Converts a UTC date to local time. In a Form Design, local time is based on the device's local time. In a template, local time is based on the Organization's default time zone. | DATETOLOCAL('2026-08-09 00:00:00') DATETOLOCAL({{datefield}}) |
| DATETOUTC(localDate) | Converts a local date to UTC. In a Form Design, local time is based on the device's local time. In a template, local time is based on the Organization's default time zone. | DATETOUTC('2026-08-09 10:00:00') DATETOUTC({{datefield}}) |
| YEAR(d) / MONTH(d) / DAY(d) | Returns the year, month, or day of a date as an integer. | MONTH('2026-08-09') (Result: 8) MONTH({{datefield}}) (Result: 8) |
| HOUR(d) / MINUTE(d) / SECOND(d) | Returns the hour, minute, or second of a date as an integer. | HOUR('2026-08-09 14:30:00') (Result: 14) HOUR({{datefield}}) (Result: 14) |
| DAYWEEK(d) | Returns the day of the week as a number (0 = Sunday through 6 = Saturday). | DAYWEEK('2026-08-09') (Result: 0) DAYWEEK({{datefield}}) |
| DAYYEAR(d) | Returns the day of the year (1–366). | DAYYEAR('2026-02-01') (Result: 32) DAYYEAR({{datefield}}) |
| WEEKYEAR(d) | Returns the week of the year (1–52). | WEEKYEAR('2026-08-09') (Result: 32) WEEKYEAR({{datefield}}) |
| IMGDATE(imageField) | Returns the original creation date and time of a photo from its EXIF metadata, in the device's local time zone. If this metadata is unavailable, the date and time the image was captured to the field is returned. | IMGDATE({{photoField}}) |
| Function | Description | Example |
| = / < / > | Comparison operators (equal to, less than, greater than). | 10 > 5 (Result: true) |
| AND / OR | Logical AND / OR operators. | (10 > 5) AND (2 = 3) (Result: false) (10 > 5) OR (2 = 3) (Result: true) |
| NOT(val) | Inverts a true/false value. | NOT(true()) (Result: false) |
| TRUE() / FALSE() | Returns the boolean value true or false. | TRUE() (Result: true) |
| IF(condition, trueVal, falseVal) | Returns one of two values depending on whether the condition is true or false. Useful for changing a field's dynamic value based on previous answers. | IF(10 > 5, 'Pass', 'Fail') (Result: 'Pass') IF((10 > 5) AND (2 = 3), 'Pass', 'Fail') (Result: 'Fail') Nesting: IF(10 > 5, 'Pass', IF({{val1}} = 3, 'Pass', 'Fail')) |
| ISBLANK(val) | Returns true if the value is blank or empty. A simple way to check if a field has no answer. | ISBLANK('') (Result: true) ISBLANK({{field1}}) |
| NOTBLANK(val) | Returns true if the value is not blank. A simple way to check if a field has an answer. | NOTBLANK('Hello') (Result: true) NOTBLANK({{field1}}) |
| COALESCE(val1, val2) | Returns the first non-empty value. Use it when you want to guarantee a non-blank value. Useful for scoring calculations: wrap each answer in COALESCE({{answer}}, 0) to get zero when the user has not answered. | COALESCE('', 0) (Result: 0) |
| REGEX(input, pattern) | Returns true if the regular expression finds a match in the input string. Regular expressions are a powerful, advanced feature. Learn more: .NET Regular Expressions Regular Expression Language – Quick Reference Options for regular expression | REGEX('test@mail.com', '^[\w-\.]+@') (Result: true) |
| REPLACE(input, pattern, replacement) | Replaces text matched by the regular expression with the replacement text. The pattern can be static text or come from another field. Learn more: Regular Expressions Examples (Regex) | REPLACE('abc1234', '[0-9]+', '') (Result: 'abc') REPLACE({{input}}, {{regex}}, '_') |
| Function | Description | Example |
| FORMAT-DATE(val, format) | Converts a date/time into a formatted text string. Format options: yy – 2-digit year yyyy – 4-digit year MM – 2-digit month MMM – 3-character abbreviated month dd – 2-digit day HH – hour in 24-hour clock mm – 2-digit minute (00–59) ss – 2-digit second (00–59) Learn more: Standard date and time format strings – .NET | FORMAT-DATE(NOW(), 'MM/dd/yyyy') (Result: '08/09/2026') |
| FORMAT-NUM(val, format, [culture]) | Converts a number into formatted text. US formatting is applied by default; the optional culture parameter sets the target format culture. Format options: 0 – Replaces with a digit, or zero if none # – Replaces with a digit, or nothing if none . – Sets the decimal separator position , – Sets the grouping separator position Learn more: Custom numeric format strings – .NET | FORMAT-NUM(4.9675, '00.00') (Result: '04.97') FORMAT-NUM({{numField}}, '00.00', 'fr-FR') (Result: '04,97') |
| FORMAT-GEO(val, format) | Formats a GPS location as text. Format options: 'DMS' – Degrees, minutes, and seconds (41°24'12"N 2°10'26.5"E) 'DDS' – Decimal degrees, space-delimited (41.40338 2.17403) 'DDC' – Decimal degrees, comma-delimited (41.40338,2.17403) 'DIR' – Direction degrees (0°N) | FORMAT-GEO('41.403 2.174', 'DMS') (Result: '41°24'10.8"N…') FORMAT-GEO({{gpsField}}, 'DDS') |
| DATE(val, [format]) | Converts a text value into a date, optionally reading it in the given format. Providing the format is recommended to ensure the value is interpreted correctly. Field references can be used for both parameters. Format options: yy – 2-digit year yyyy – 4-digit year MM – 2-digit month MMM – 3-character abbreviated month dd – 2-digit day HH – hour in 24-hour clock mm – 2-digit minute (00–59) ss – 2-digit second (00–59) Learn more: Standard date and time format strings – .NET | DATE('12/14/22 5:10:08', 'MM/dd/yy H:mm:ss') Reads the value as if it is written in the format 'MM/dd/yy H:mm:ss'. DATE({{myDateField}}, {{myFormatField}}) |
| STRING(val) | Converts a value to text. | STRING(100) (Result: '100') |
| INT(val) | Converts a value to an integer. | INT('123.45') (Result: 123) |
| NUMBER(val) | Converts a value to a decimal number. | NUMBER('12.34') (Result: 12.34) |
| BOOLEAN(val) | Converts a value to true/false. | BOOLEAN('true') (Result: true) |
| CBOX(val, matchTo) | Returns a ticked Unicode checkbox (☑) if the value matches, or a crossed one (☒) if not. | CBOX('Yes', 'Yes') (Result: ☑) CBOX({{field1}}, 'Yes') |
| CBOXB(val, matchTo) | Returns a ticked Unicode checkbox (☑) if the value matches, or a blank one (☐) if not. | CBOXB('No', 'Yes') (Result: ☐) CBOXB({{field1}}, 'Yes') |
| FILEURL(fieldName) | Returns the web URL for a media or attachment field. Helpful for assigning to a Data Source image column or providing direct download links in Connector outputs. | FILEURL({{photoField}}) |
Note: These functions refer to a data source by its External ID (dsId), set on the data source's Settings page, so the data source doesn't need to be linked to the screen through Choices or Hidden DS fields. Columns are referred to by their zero-based index, and filter formulas use {{this[columnIndex]}} to evaluate column data.
Dynamic Form Data Sources can also be used with these functions by referencing the field's data name instead of an External ID.
| Function | Description | Example |
| DSCOUNT('dsId', [filter]) | Counts rows, optionally filtered by a formula. | Count all rows: DSCOUNT('STAFF') (Result: 24) Count rows where the 3rd column = BOB: DSCOUNT('STAFF', '{{this[2]}} = "BOB"') (Result: 3) Dynamic Form Data Source reference: DSCOUNT({{ds_dataname}}, '{{this[2]}} = "BOB"') |
| DSSUM('dsId', column, [filter]) | Sums a column's values, optionally filtered by a formula. | Sum the 3rd column: DSSUM('STAFF', 2) (Result: 42) Sum the 3rd column where the 6th column = BOB: DSSUM('STAFF', 2, '{{this[5]}} = "BOB"') (Result: 6) Dynamic Form Data Source reference: DSSUM({{ds_dataname}}, 2, '{{this[5]}} = "BOB"') |
| DSAVG('dsId', column, [filter]) | Averages a column's values, optionally filtered by a formula. | Average of the 3rd column: DSAVG('STAFF', 2) (Result: 10) Average of the 3rd column where the 6th column = BOB: DSAVG('STAFF', 2, '{{this[5]}} = "BOB"') (Result: 4) Dynamic Form Data Source reference: DSAVG({{ds_dataname}}, 2, '{{this[5]}} = "BOB"') |
| DSMAX('dsId', column, [filter]) | Returns the maximum value in a column, optionally filtered by a formula. | Max of the 3rd column: DSMAX('STAFF', 2) (Result: 14) Max of the 3rd column where the 6th column = BOB: DSMAX('STAFF', 2, '{{this[5]}} = "BOB"') (Result: 7) Dynamic Form Data Source reference: DSMAX({{ds_dataname}}, 2, '{{this[5]}} = "BOB"') |
| DSMIN('dsId', column, [filter]) | Returns the minimum value in a column, optionally filtered by a formula. | Min of the 3rd column: DSMIN('STAFF', 2) (Result: 7) Min of the 3rd column where the 6th column = BOB: DSMIN('STAFF', 2, '{{this[5]}} = "BOB"') (Result: 3) Dynamic Form Data Source reference: DSMIN({{ds_dataname}}, 2, '{{this[5]}} = "BOB"') |
| DSFIRST('dsId', column, [filter]) | Returns the first matching value in a column, optionally filtered by a formula. | First value of the 3rd column: DSFIRST('STAFF', 2) (Result: 1) First value of the 3rd column where the 6th column = BOB: DSFIRST('STAFF', 2, '{{this[5]}} = "BOB"') (Result: 2) Dynamic Form Data Source reference: DSFIRST({{ds_dataname}}, 2, '{{this[5]}} = "BOB"') |
| DSLAST('dsId', column, [filter]) | Returns the last matching value in a column, optionally filtered by a formula. | Last value of the 3rd column: DSLAST('STAFF', 2) (Result: 9) Last value of the 3rd column where the 6th column = BOB: DSLAST('STAFF', 2, '{{this[5]}} = "BOB"') (Result: 3) Dynamic Form Data Source reference: DSLAST({{ds_dataname}}, 2, '{{this[5]}} = "BOB"') |
| Function | Description | Example |
| LIST(pattern, [filterFormula]) | Collects field answers into a List by matching field data names against a regular expression (ideal for sequentially named fields like q1, q2). Typically used inside aggregate functions like SUM() or COUNT(). Pattern (required): a regular expression matching target field data names. Filter formula (optional): keeps only answers that evaluate to true. Reference each answer with {{this}}. | Sum all matches: SUM(LIST('q[0-9]+')) (Sums answers from fields named q1, q2, etc.) Filtered count: COUNT(LIST('q[0-9]+', '{{this}} = 5')) (Counts q fields where the answer equals 5) |
| TOLIST(value, [delimiter], [filterFormula]) | Converts a delimited text string into a List. Value (required): text containing delimited elements (e.g., '34|76|9'). Delimiter (optional): the separating character. Defaults to pipe (|). Filter formula (optional): keeps only elements that evaluate to true. Reference each element with {{this}}. | Basic conversion (default | delimiter): TOLIST({{myfield}}) Filter only (default | delimiter): TOLIST({{myfield}}, 'STARTSWITH({{this}}, "B")') Custom delimiter and filter: TOLIST('3,6,9', ',', '{{this}} > 5') (Result: a List with 6 and 9) |
| TOLIST(field1, field2, ..., [filterFormula]) | Converts multiple form fields into a single List, with each field's value as an element. Field1, Field2, … (required): two or more field references. Filter formula (optional): a final parameter that keeps only elements that evaluate to true. Reference each element with {{this}}. | TOLIST({{field1}}, {{field2}}, {{field3}}) (Combines three field values into one List) TOLIST({{field1}}, {{field2}}, {{field3}}, 'STARTSWITH({{this}}, "B")') (Keeps only values that start with "B") |
| IN(val, list) | Returns true if the value exists in the List. Value (required): the text, number, or field value to search for. List (required): a List or List-generating function such as LIST(), TOLIST(), or PRIOR(). | IN('B', TOLIST('A,B,C', ',')) (Result: true) IN('ABC', LIST('q[0-9]+')) (True if 'ABC' is the answer to any q field) IN('ABC', PRIOR('repeatfield')) (True if 'ABC' was entered in a previous row) |
| NOTIN(val, list) | Returns true if the value is not in the List. Value (required): the text, number, or field value to search for. List (required): a List or List-generating function such as LIST(), TOLIST(), or PRIOR(). | NOTIN('D', TOLIST('A,B,C', ',')) (Result: true) NOTIN('ABC', TOLIST({{listfield}})) (True if 'ABC' is not in the parsed list) NOTIN('ABC', PRIOR('repeatfield')) (True if 'ABC' was not entered in any prior row) |
| COUNT(list) | Returns the number of elements in a List. List (required): a List or List-generating function such as LIST(), TOLIST(), or PRIOR(). | COUNT(LIST('q[0-9]+')) (Number of answered q fields) COUNT(TOLIST('A|B|C')) (Result: 3) COUNT(PRIOR('item_name')) (Number of entries in previous rows) |
| SUM(list) | Returns the sum of all numeric values in a List. List (required): a List or List-generating function such as LIST(), TOLIST(), or PRIOR(). | SUM(LIST('q[0-9]+')) (Sums answers from q1, q2, etc.) SUM(TOLIST('1|2|3|4|5')) (Result: 15) SUM(TOLIST({{listfield}})) (Sums the numbers in a pipe-delimited field) |
| AVERAGE(list) | Returns the average of all numeric values in a List. List (required): a List or List-generating function such as LIST(), TOLIST(), or PRIOR(). | AVERAGE(LIST('q[0-9]+')) AVERAGE(TOLIST('10|20|30')) (Result: 20) AVERAGE(PRIOR('score')) (Averages entries from previous rows) |
| MEDIAN(list) | Returns the median (middle) value in a numeric List. List (required): a List or List-generating function such as LIST(), TOLIST(), or PRIOR(). | MEDIAN(LIST('q[0-9]+')) MEDIAN(TOLIST('1|2|3|4|5')) (Result: 3) MEDIAN(TOLIST({{listfield}})) |
| MIN(list) | Returns the lowest value in a numeric List. List (required): a List or List-generating function such as LIST(), TOLIST(), or PRIOR(). | MIN(LIST('q[0-9]+')) MIN(TOLIST('10|2|45')) (Result: 2) MIN(PRIOR('score')) |
| MAX(list) | Returns the highest value in a numeric List. List (required): a List or List-generating function such as LIST(), TOLIST(), or PRIOR(). | MAX(LIST('q[0-9]+')) MAX(TOLIST('10|2|45')) (Result: 45) MAX(PRIOR('score')) |
| FIRST(list) | Returns the first element of a List. List (required): a List or List-generating function such as LIST(), TOLIST(), or PRIOR(). | FIRST(LIST('q[0-9]+')) FIRST(TOLIST('Apple|Banana|Cherry')) (Result: 'Apple') FIRST(PRIOR('item_code')) (Item code from the first row) |
| LAST(list) | Returns the last element of a List. List (required): a List or List-generating function such as LIST(), TOLIST(), or PRIOR(). | LAST(LIST('q[0-9]+')) LAST(TOLIST('Apple|Banana|Cherry')) (Result: 'Cherry') LAST(PRIOR('item_code')) (Item code from the most recent prior row) |
| Function | Description | Example |
| POSITION({{repeat}}) | Returns the page/row number of the current repeatable Page or Table row. Useful for generating incremental numbers for sections/clauses (e.g., 1.1, 1.2, 1.3). | POSITION({{repeatTable}}) (Result: 1) |
| PRIOR('field', [count]) | Retrieves previous repeat/row values of the named field. Use only within a repeatable Page or Table. The optional second parameter sets how many prior answers to retrieve. Prior values are returned as a List unless the second parameter is 1, in which case the last prior answer is returned. Useful for aggregate functions on values so far (e.g., SUM, COUNT), or with 1, for copying the previous row's value into a new row. | PRIOR('myfield', 1) Last prior value only. PRIOR('myfield') List of all prior answers. |
| COUNT({{repeatTable}}) | Returns the number of repeats/rows in a table field or repeatable page. Useful for counting rows captured (e.g., an order line count). | COUNT({{orderRows}}) (Result: 4) |
| SUM({{numField}}) | Totals a Number field across all repeats/rows. Useful for totals (e.g., an order total). | SUM({{lineTotal}}) (Result: 150.00) |
| AVERAGE({{numField}}) | Averages a Number field across all repeats/rows. | AVERAGE({{quantity}}) (Result: 2.5) |
| MEDIAN({{numField}}) | Returns the median value of a Number field across all repeats/rows. | MEDIAN({{score}}) (Result: 85) |
| MIN({{numField}}) | Returns the minimum value of a Number field across all repeats/rows. | MIN({{temperature}}) (Result: 18) |
| MAX({{numField}}) | Returns the maximum value of a Number field across all repeats/rows. | MAX({{temperature}}) (Result: 32) |
| FIRST({{repeatField}}) | Returns the value from the first repeat/row. | FIRST({{itemCode}}) (Result: 'SKU-01') |
| LAST({{repeatField}}) | Returns the value from the last repeat/row. | LAST({{itemCode}}) (Result: 'SKU-09') |
| Function | Description | Example |
| SELECTED({{choiceField}}, 'val') | Returns true if the given option is selected in the choices field. | SELECTED({{multiChoice}}, 'OptionA') (Result: true) |
| COUNT-SELECTED({{choiceField}}) | Returns the number of options selected in the choices field. | COUNT-SELECTED({{multiChoice}}) (Result: 3) |
| Function | Description | Example |
| HTTPSTATUS({{restField}}) | Returns the HTTP status code from the REST field's last request. Learn more: HTTP status codes | HTTPSTATUS({{myRestField}}) (Result: 200) |
| JSONVAL({{jsonField}}, 'path') | Returns the value from the given JSON for the given JSONPath query. Use the optional true/false validate parameter to raise an error if the query fails. Note: The JSONPath '$.' prefix is not required. Learn more: JSONPath | Test your JSONPath | JSONVAL('{"token":"123"}', 'token') (Result: '123') JSONVAL({{jsonField}}, 'resp.token') |
| JSONLIST({{jsonField}}, 'path') | Returns a List of values from the given JSON for the given JSONPath query. Use the optional true/false validate parameter to raise an error if the query fails. Note: The JSONPath '$.' prefix is not required. Learn more: JSONPath | Test your JSONPath | JSONLIST({{jsonField}}, 'resp.product.id') |
| XMLVAL({{xmlField}}, 'path') | Returns the value from the given XML for the given XPath query. Use the optional true/false validate parameter to raise an error if the query fails. Note: The opening XPath '/' is not required. Learn more: XPath | XMLVAL({{xmlField}}, 'resp/token') |
| XMLLIST({{xmlField}}, 'path') | Returns a List of values from the given XML for the given XPath query. Use the optional true/false validate parameter to raise an error if the query fails. Note: The opening XPath '/' is not required. Learn more: XPath | XMLLIST({{xmlField}}, 'resp/products/id') |
| Function | Description | Example |
| LAT(loc) / LON(loc) | Returns the latitude or longitude of a location value in decimal degrees. | LAT('-33.86 151.20') (Result: -33.86) LAT({{gpsField}}) |
| HEADING(loc) / ALTITUDE(loc) | Returns the heading against true north in decimal degrees, or the altitude in meters. | ALTITUDE({{gpsField}}) (Result: 45.2) |
| ACCURACY(loc) | Returns the GPS accuracy radius in meters. | ACCURACY({{gpsField}}) (Result: 5) |
| STREETNUM(loc) / STREET(loc) | Enable Address Lookup required. Returns the street number or street name. STREETNUM() matches 'sub_thoroughfare' on the OASIS Specification. STREET() matches 'thoroughfare' on the OASIS Specification. | STREETNUM({{gpsField}}) (Result: '100') |
| CITY(loc) / STATE(loc) | Enable Address Lookup required. Returns the city/locality or state/province. CITY() matches 'locality' on the OASIS Specification. STATE() matches 'admin_area' on the OASIS Specification. | STATE({{gpsField}}) (Result: 'NSW') |
| COUNTY(loc) / POSTCODE(loc) | Enable Address Lookup required. Returns the county/district or postal/zip code. COUNTY() matches 'admin_area' on the OASIS Specification. POSTCODE() matches 'postal_code' on the OASIS Specification. | POSTCODE({{gpsField}}) (Result: '2000') |
| COUNTRY(loc) | Enable Address Lookup required. Returns the ISO country code. Matches 'country' on the OASIS Specification. | COUNTRY({{gpsField}}) (Result: 'AU') |
| MIBETWEEN(pt1, pt2) | Returns the distance in miles between two geo-points, using great-circle math. Geo-points are strings in 'lat lon' format. Location field answers are also geo-points. | MIBETWEEN('0 0', '0 1') (Result: 69.05) MIBETWEEN('-8.45234 27.7623423', {{myGpsField}}) |
| KMBETWEEN(pt1, pt2) | Returns the distance in kilometers between two geo-points, using great-circle math. Geo-points are strings in 'lat lon' format. Location field answers are also geo-points. | KMBETWEEN('0 0', '0 1') (Result: 111.12) KMBETWEEN('-8.45234 27.7623423', {{myGpsField}}) |
| INPOLYGON(point, polygon) | Returns true if the geo-point is inside the polygon (geofence). The polygon is a pipe-separated string of geo-points. | INPOLYGON({{gps}}, '-8.67 27.29|-8.66 28.70|-7.64 29.38') |
| Function | Description | Example |
| STEP-CURRENT() | Returns the name of the current Process Step. Returns blank if no Step has occurred yet. | STEP-CURRENT() (Result: 'Manager Approval') |
| STEP-ISCURRENT('stepDataName') | Returns true if the named Process Step is the current Step. If no Step has occurred yet, returns true for ANY Process Step name. | STEP-ISCURRENT('Approval') (Result: true) |
| STEP-COMPLETED() | Returns the name of the most recently completed Step. Returns blank if no Step has been completed yet (e.g., a new form entry in progress in the app). Ideal for Connectors, because it always returns a value there (a Step is completed as soon as the entry is uploaded). | STEP-COMPLETED() (Result: 'Initial Submission') |
| STEP-RESULT('stepDataName') | Returns the result of the named Process Step, if one is set. | STEP-RESULT('Review') (Result: 'Approved') |
| STEP-EMAIL('stepDataName') | Returns the email of the user who decided the named Process Step. | STEP-EMAIL('Review') (Result: 'boss@co.com') |
| STEP-FIRST('stepDataName') | Returns the first name of the user who decided the named Process Step. | STEP-FIRST('Review') (Result: 'Jane') |
| STEP-LAST('stepDataName') | Returns the last name of the user who decided the named Process Step. | STEP-LAST('Review') (Result: 'Doe') |
| Function | Description | Example |
| PI() | Returns the mathematical constant Pi, accurate to 15 digits. | PI() (Result: 3.14159265358979) |
| DEGREES(rad) | Converts radians to degrees. | DEGREES(1.5708) (Result: 90) |
| RADIANS(deg) | Converts degrees to radians. | RADIANS(180) (Result: 3.14159265358979) |
| SQRT(val) | Returns the square root of a number. | SQRT(16) (Result: 4) |
| LOG(val, base) | Returns the logarithm of a number to the specified base. | LOG(100, 10) (Result: 2) |
| SIN(rad) / COS(rad) / TAN(rad) | Sine, cosine, and tangent of an angle in radians. For degrees, use RADIANS() to convert first. | SIN(RADIANS(90)) (Result: 1) |
| ASIN(val) / ACOS(val) / ATAN(val) | Inverse sine, cosine, and tangent. Returns an angle in radians. | ASIN(1) (Result: 1.5707963267949) |
| SINH(rad) / COSH(rad) / TANH(rad) | Hyperbolic sine, cosine, and tangent. | SINH(0) (Result: 0) |