Notifications

16 views

Symptoms

 

When there is a multiple choice variable with only one choice and a UI policy based on the multiple choice variable, the UI policy condition will return true on page load even though the value of the multiple choice variable is not selected. 

 

Cause

 

This is because when there is only one choice in the multiple choice variable type, the choice will be selected on page load in the DOM. The behavior can be verified by using g_form.getValue(‘variable_name’) in the browser console. There is an existing problem for this issue - PRB1311200 and it is fixed in Madrid. 

 

Resolution

 

As a workaround, users can check ‘Include none’ under Type specification tab of the multiple choice variable. 

Article Information

Last Updated:2019-05-21 11:52:53
Published:2019-02-23