This function uses the Forms Expression Builder feature to build simple expressions.
The expression builder (JQuery-based expression computed on client-side code) will display variables and globals based on the context. Note: The functions/variables/globals should be invoked with a double click.
On the Forms Designer page, you'll need to navigate to the Page - Functions menu option.

Click on the (fx) image to invoke the Forms Expression Builder.

The Forms Expression Builder popup window is displayed for configuration.

You must use the user interface to build and validate an expression. You may click the Verify button in the Result textbox to validate this expression. The Use & Close button shall copy this expression to the form text field before closing the popup window.

Parts of the user interface
1) Expression – Placeholder to build the expression. This can be done via manual entry or by picking operators (7) or functions (8).
2) Verify – Select this function to verify the logic of the expression. It will allow you to enter a value into the defined input fields and simulate the expression. Example Expession: = CONCAT(“Dear, “ + variable.username + “, we’re today : “ +DAYTEXT(TODAY())
3) Use & Close: Depending on the starting point, the expression is used in the process or form control. The window is closed.
4) Save As – Saves the expression as a new function to re-use. Will be displayed in the functions overview (8) – Section Custom Expression
5) Send to Clipboard: This copyes the expression into the clipboard to be pasted later.
6) Clear Expressions: erases any definition in the expression builder
7) Available Operators
8) Available Functions (See below)
9) Description and example of the function
Functions Aggregate Table
AVERAGE |
Description: Returns the average of the given numbers
|
COUNT |
Description: Counts the number of numerical items.
|
MAX |
Description: Returns the largest value from a set of data
|
MIN |
Description: Returns the smallest value from a set of data
|
SUM |
Description: Sums up all the given numbers
|
Functions Numeric Table
ABS |
Description: Returns the absolute value of a given number
|
FLOOR |
Description: Round a number down to the nearest specified multiple Example: FLOOR(36,7) // returns 35
|
ISEVEN |
Description: check if a numeric value is an even number. Example: ISEVEN(7) // returns False |
LOG |
Description: Gets the logarithm of a number
|
MOD |
Description: Returns the remainder of the division of the given number in the divisor |
QUOTIENT |
Description: Returns the result of integer division without the remainder
|
POWER |
Description: A number raised to a power
|
ROUND |
Description: Rounds a number to a specific number of digits
|
ROUNDUP |
Description: Always rounds a number up
|
ROUNDDWN |
Description: Always rounds a number down
|
SQRT |
Description: Positive square root of a positive number
|
TRUNC |
Description: Truncate a number to a given precision Example: TRUNC(4.9) // returns 4 TRUNC(-3.5) // returns -3 TRUNC(PI(), 3) // returns 3.141
|
Function Date Time Table
ADD_DAYS |
Description: Adds days to the given date. Returns the new date.
|
DATE |
Description: Returns the value for the given parameters
|
DAYNUMBER |
Description: Returns the day of the month of a given date.
|
DAYTEXT |
Description: Returns the day of the month of a given date in a long format.
|
DAYS |
Description: Returns the number of days between the two dates
|
FORMAT_DATE |
Description: Returns a formatted date
|
HOUR |
Description: Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).
|
HOURS_DIFF |
Description: Returns the difference between two hours columns
|
WORKDAYS |
Description: Returns the number of working days between the two dates
|
MINUTE |
Description: Returns the minute as a number from 0 to 59.
|
MONTH |
Description: Returns the month of a given date.
|
MONTHTEXT |
Description: Returns the month of a given date in long format.
|
NOW |
Description: Gets the current time in 24hour format
|
NOWUTC
|
Description: Gets the current time in 24hour format (UTC)
|
QUARTER |
Description: Returns the quarter of a given date. Example: MONTH(variable.startdate) // returns 2
|
SECOND |
Description: Returns the second as a number from 0 to 59.
|
SUBTRACT_DAYS |
Description: Subtract days from the given date. Returns the new date.
|
TODAY |
Description: Gets the current date in current timezone format
|
TODAYUTC
|
Description: Gets the current date in UTC Format (UTC)
|
WEEKNUM |
Description: Returns the yearly week number of a given date.
|
YEAR |
Description: Returns the year of a given date.
|
Functions String / Text
CONCAT |
Description: This operator concatenate text values into a single text value
|
EXACT |
Description: compares two strings and returns TRUE if both values are the same Example: EXACT(variable.username, global.username) // returns TRUE – if the value of both variable and global are the same
|
LEFT |
Description: Extracts a given number of characters from the left side.
|
LEN |
Description: Returns the amount of characters of a given text string.
|
LOWER |
Description: Converts a specified string to lowercase
|
MID |
Description: Extracts a given number of characters from the middle of a supplied text string. Example: MID(“I Like FlowWright”, 3,4) // returns “Like” |
REPLACE |
Description: Replaces a part of a string with the new string.
|
REPT |
Description: Repeats a string a given number of times.
|
RIGHT |
Description: Extracts a number of characters from the right side of a given text string.
|
SEARCH |
Description: Searches a string within another string
|
SUBSTITUTE |
Description: Replace text in a given text string by matching.
|
TEXT |
Description: Formats the given value based on the given text format
|
TRIM |
Description: Removes all spaces from a string except for single spaces between words.
|
UPPER |
Description: Convert a specified string to uppercase
|