DISPLAY_INVALID_STATUS
  • 28 Oct 2022
  • 1 Minute to read
  • PDF

DISPLAY_INVALID_STATUS

  • PDF

Article summary


Description:

You can mark any question as incomplete by using this rule and mark status of that whole page as Invalid Answer by using conditions on this rule.

Rule Definition:

Display_invalid_status_template.png


DISPLAY_INVALID_STATUS(NodeId, InvalidStatus, ErrorMessage)
NodeId => The node id of the question you want to highlight for the invalid response.
InvalidStatus=> Depending on the condition you can pass 2 values as parameter 2.

  1. true : If you want to mark response as invalid depending on the condition you need to pass true as a second parameter to this function. Like metioned in the above picture for point 1, if value passed is greater than or less than 100, that response will be marked as invalid.
  2. false :You need to specify second parameter as false for accepted responses. Like in above image for point 2, if response is 100 or 0 it will accepted as valid response.

ErrorMessage:Error message that will be shown on top of page once user saves the page with unacceptable answer.

Rule calling :

You need to call above defined rule on questions to get desired result.

In Manage Template go to Rule tab at the top of page.
Validate_Response_Rule_Tab.png


On the question where you want to show Invalid Answer status you can call rule as follows:

Validate_Response_Rule_Calling.png

It is mandatory to give question text and number to questions on which this rule is applied in template.

Final Output:
Row100Percent_InvalidAnswer_FinalOutput.gif


Was this article helpful?