Formulas
Formulas are algorithms that derive their values from other fields, expressions, or values.
This topic lists the following functions that can be used:
You can use formulas for:
Best Practices
-
Only use supported functions and operators in formulas.
-
Some formulas that work in FieldFX Back Office don’t work in FieldFX Mobile.
-
Don’t include commented out code in formulas.
-
Use the
ROUND
function on date/time values in formulas.
Date & Time Functions
Function | Description | Supported | Not Supported | ||
---|---|---|---|---|---|
|
Returns a date value for specified year, month, and day values. Returns an error for invalid dates, such as February 29 in a non-leap year. |
||||
|
Returns a date value for a date/time or text expression. |
||||
|
Returns a year, month, day, and GMT time value. |
||||
|
Returns a day of the month in number form, such as "5" for Jan 5. |
||||
|
|||||
|
Returns a month in number form, such as "1" for January or "12" for December. |
||||
|
Returns the current date/time.
|
||||
|
|||||
|
Returns a timestamp with millisecond precision but without a date. |
||||
|
Returns a time value in GMT representing the current moment. Use this function instead of the NOW function if you only want to track time without a date. |
||||
|
Returns the local time value without the date, such as business hours. Based on the organization’s locale settings. |
||||
|
Returns the current date.
|
||||
|
Returns a year as a four-digit number, such as "2019". |
||||
Function |
Description |
Supported |
Not Supported |
Informational Functions
Function | Description | Supported | Not Supported | ||
---|---|---|---|---|---|
|
Returns a substitute expression if an expression doesn’t have a value (including a null value). Returns the value of an expression if the expression has a value. |
||||
|
Returns |
||||
|
Returns
|
||||
|
|||||
|
Returns a substitute expression if an expression has a null (blank) value. Returns the value of an expression if the expression has a value.
|
||||
|
Returns the previous value of a field. Returns the current value if there is no |
||||
Function |
Description |
Supported |
Not Supported |
Logical Functions
Function | Description | Supported | Not Supported |
---|---|---|---|
|
Returns |
||
|
Checks an expression against a series of values. Returns the corresponding result if the expression is equal to a value. Returns the |
||
|
Determines whether expressions are true or false. Returns a given value if |
||
|
Compares the value of a field to the previous value. Returns |
||
|
Returns |
||
|
Returns |
||
|
|||
|
Returns |
||
|
Returns |
||
Function |
Description |
Supported |
Not Supported |
Math Functions
Function | Description | Supported | Not Supported | ||
---|---|---|---|---|---|
|
Returns the absolute value of a number.
|
||||
|
Returns a number rounded up to the nearest integer. |
||||
|
|||||
|
Returns a value for e raised to the power of a specified number. |
||||
|
Returns a number rounded down to the nearest integer. |
||||
|
|||||
|
Returns the natural logarithm of a specified number.
|
||||
|
Returns the base 10 logarithm of a number. |
||||
|
Returns the highest number from a list of numbers. |
||||
|
Returns the lowest number from a list of numbers. |
||||
|
Returns the remainder after a number is divided by a specified divisor. |
||||
|
Returns the nearest number to a specified number, constraining the new number by a specified number of digits. |
||||
|
Returns the positive square root of a specified number. |
||||
Function |
Description |
Supported |
Not Supported |
Text Functions
Function | Description | Supported | Not Supported | ||||
---|---|---|---|---|---|---|---|
|
Returns |
||||||
|
Inserts a line break in a string of text. |
||||||
|
Converts a 15-character ID to a case-insensitive 18-character ID. |
||||||
|
Compares two arguments of text. Returns |
||||||
|
Returns the position of a string within a string of text, represented as a number. |
||||||
|
|||||||
|
|||||||
|
|||||||
|
Determines if any value selected in a multi-select picklist equals a text literal you specify. |
||||||
|
Determines if the value in a picklist equals a text literal you specify. |
||||||
|
Returns the specified number of characters from the beginning of a text string. |
||||||
|
Returns the number of characters in a text string. |
||||||
|
Converts all letters in a text string to lowercase. |
||||||
|
Inserts characters you specify to the left side of a text string. |
||||||
|
Returns the specified number of characters from the middle of a text string given the starting position. |
||||||
|
Returns the specified number of characters from the end of a text string. |
||||||
|
Inserts characters you specify to the right side of a text string. |
||||||
|
Substitutes new text for old text in a text string. |
||||||
|
Converts a currency, date, date/time, number, percentage, or picklist value into text. Also converts picklist values in
|
||||||
|
Removes the spaces and tabs from the beginning and end of a text string. |
||||||
|
Converts all letters in a text string to uppercase. |
||||||
|
Converts a text string to a number. |
||||||
Function |
Description |
Supported |
Not Supported |
Advanced Functions
Function | Description | Supported | Not Supported | ||
---|---|---|---|---|---|
|
|||||
|
|||||
|
|||||
|
Compares a text field to a regular expression. Returns
|
||||
|
|||||
|
|||||
|
Encoding Functions
Function | Description | Supported | Not Supported |
---|---|---|---|
|
|||
|
|||
|
|||
|
|||
|
Math Operators
Operator | Description | Supported | Not Supported |
---|---|---|---|
|
Calculates the sum of specified values. |
||
|
Calculates the difference of specified values. |
||
|
Multiplies the specified values. |
||
|
Divides the specified values. |
||
|
Raises a number to the power of a specified number. |
||
|
Specifies that expressions inside the parentheses are evaluated first. All other expressions are evaluated using standard operator precedence. |
||
|
Logical Operators
Operator | Description | Supported | Not Supported |
---|---|---|---|
|
Evaluates if two values are equal. The = and == operator are interchangeable. |
||
|
Evaluates if two values aren’t equal. |
||
|
Evaluates if a value is less than the value that follows this symbol. |
||
|
Evaluates if a value is greater than the value that follows this symbol. |
||
|
Evaluates if a value is less than or equal to the value that follows this symbol. |
||
|
Evaluates if a value is greater than or equal to the value that follows this symbol. |
||
|
Evaluates if two values or expressions are both true. Use this operator as an alternative to the |
||
|
Evaluates if at least one of multiple values or expressions is true. Use this operator as an alternative to the |
||
|
Logical complement operator. Inverts the value of a Boolean, so that true becomes false, and false becomes true. |
||
|