Hi everyone,
I have an extensive survey (10 pages) that works perfectly in any of the Survey123 apps, but when I launch on the web, the form could not initialize, showing up an error like
FormLogicError: Could not evaluate: (selected( /model/instance[1]/Encuesta_Ocupaciones_v2/info_loc_predio/tipificacionOcupacion , 'vivienda') or selected( /model/instance[1]/Encuesta_Ocupaciones_v2/info_loc_predio/tipificacionOcupacion ,'viviendaOtro')), message: Context node was not supplied.
What I have is a select_one list attribute ((tipificacionOcupacion) ) which lists 5 options, (Vivienda, viviendaOtro, cultivos , pastoreo). Later on, I have a set of questions in a repeat group that need to show only if two of the aforementioned options were chosen.
I have tried several options, but nothing seems to work.
(selected(${tipificacionOcupacion}, 'vivienda') or selected(${tipificacionOcupacion},'viviendaOtro'))
selected(${tipificacionOcupacion}, 'vivienda') or selected(${tipificacionOcupacion},'viviendaOtro')
${tipificacionOcupacion} = ('vivienda', 'viviendaOtro')
regex(${tipificacionOcupacion}, "vivienda|viviendaOtro")
regex(${tipificacionOcupacion},'vivienda|viviendaOtro')
Advice is greatly welcome because of I kind of desperate with this issue for all my surveys with multiples options chosen in a select_one list
Fernando Benitez