XLSForm: When and how to use “not selected” syntax

This constraint doesn’t allow a certain combination of answers – if one of the answers is “I don’t Know” it can not be combined with “House Tap” or “Bottled Water” or “Other”. Remaining combinations are allowed.

Example: not(selected(., ‘dk’) and (selected(.,’house_tap’) or selected(.,’bottled’) or selected(.,’other’) or selected (.,’private_tap’) or selected (.,’public_tap’) or selected (.,’neighbor_tap’) or selected (.,’rain_collect’)  or selected (.,’river’) or selected (.,’spring’) or selected (.,’ref_station’)))

not_selected_eng

Category: Create a New Questionnaire, Questionnaires, Questionnaire > Overview, Create Questionnaires, Questionnaire > Questionnaire

← Return to search results