Set value and hide (routing action)

routing-set-value-and-hide(2) Use this action to create a routing instruction that will set a value in a variable and make the variable invisible during data entry. The respondent will not be asked the invisible variable, but the value set by this routing instruction will be retained in the data record.

This routing is equivalent to combining the set value and make question invisible routing actions.

The values this action can specify depend on the whether or not the condition has been positively evaluated during data collection:

Value if True: contains the value which will be applied to the target variable when the condition has been positively evaluated.

Value if False: it is not obligatory to specify a value in this field. When specified, it contains the value which will be specified to the Target variable when the condition has been negatively evaluated.

This action can specify numeric values or a string of characters. Furthermore, as the values to be specified are defined according to the script, you can use askiascript functions and syntaxes when defining them. For example:

 

Note: If you are inside a loop and the start question of the routing set value is equal or after the target question, then the system will use the previous iteration as current iteration value instead of the real current iteration. If you want to always use the current iteration or specify on which iteration you would like to set a value then use Run as askiascript routing action.
Create your own Knowledge Base