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

NameTypeRequiredDescription
formIdstringYesThe ID of the form containing the page to evaluate
pageNumbernumericYesThe page number within the form to evaluate conditions for
storageKeystringNo (default="")
payloadstructNoA struct of submission data used for evaluating conditions