Skipping questions with multiple conditions as relevant

Hi everyone,

I have a small question, I have a problem with skipping questions after a yes-no question. Even if I give the ‘yes’ condition as relevant it does not skip the following question if the answer is ‘no’.

Here below the example:

Anyone has idea what could be the problem?

Many thanks in advance!

image

Here the yes-no answer

@Giul, could you show the variable name referenced with tipo_visita by sharing the entire screenshot from your XLSForm? Is it a select_one question or a select_multiple question?

Here it is

the same problem happens in following yes-no questions. Tipo visita (Type of visit) has three options.

Thanks!!

@Giul, it seems like you have not provided space before the or operator:

${tipo_visita}='2'or ${tipo_visita}='3'

Try using this instead:

${tipo_visita}='2' or ${tipo_visita}='3'

Hi @Kal_Lam

Many thanks for your answer, which I saw now!

I tried to do as you suggested, but it still does not skip the condition if the answer is ‘no’, in all cases where I have the if yes condition:

Do you see any other problem?

Many thanks in advance!!!
Giulia

@Giul, the image shared below should help you understand how to use the operators to make a skip logic in various conditions:

In the survey tab of your XLSForm:

In the choices tab of your XLSForm:

Image 2

Data entry screen as seen in Enketo:

Reference XLSForm:

Skipping.xlsx (19.2 KB)

1 Like

Hi @Kal_Lam

I added the parenthesis as suggested, great, it works now :slight_smile: many thanks!!!

1 Like