Forms, formatting and other functions
Format messages and queries and perform other useful operations on specific forms.
- getValues( )
Use this helper function to fetch values for one or more variables across multiple visits, in an array format ordered by visits. - getQuestionValue( )
Return a single question value for provided item path. The item path should be a whole path and should contain values for visitId, formId, and itemId. This function fetches values from questions on both repeating and flat forms. - getDataElementsArray( )
Return an array of data element arrays that contain data collection information about all existing instances for each variable. - clearValue( )
Use this helper function to clear values in a target populated by a calculation rule, whether it is a text, number, or multiple choice question. - getFormSubmitDate()
Retrieves either the form start, completion, or last updated date. - setQueryMessage( )
Set a query message dynamically within a rule. This query message is used for query creation when the rule returns false.
Parent topic: Rules helper function reference