evaluateConditionForPage()
Overview
public boolean function evaluateConditionForPage(
required string formId
, required numeric pageNumber
, string storageKey = ""
, struct payload
)
Evaluates any conditional logic attached to a given form page to determine whether that page should be displayed. The evaluation is performed against stored or provided submission data using the rules engine. If no condition is defined for the page, the function will return true by default. (defaults to temporary stored submission if not provided) false if the condition evaluation fails
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| formId | string | Yes | The ID of the form containing the page to evaluate |
| pageNumber | numeric | Yes | The page number within the form to evaluate conditions for |
| storageKey | string | No (default="") | |
| payload | struct | No | A struct of submission data used for evaluating conditions |