Adding Skip Logic

Hi every one, I want to skip a group of questions if the option “no” of the first question in the group (yesno question) is selected. my usual function isn’t working. Please help

Hi @alfrednborbor, can you share a screenshot of the relevant part of your form?

1 Like

Hi @alfrednborbor,
Please share your XLSForm with us.

1 Like

Hi,
Please see the attached screenshot.

(attachments)

Screenshot 2024-08-19 141516.png

Hi,

Attached is the XLSForm

(attachments)

LAPS SH+ Pre-Assessment Form_Final.xls (116 KB)

Hello @alfrednborbor
Use this ${pain} = “yes” code. Or find the update file. Now this file works.
LAPS SH+ Pre-Assessment Form_Final.xls (108.5 KB)

1 Like

Hello,
I have tried the updated version of the XLFform but it is not still skipping the group. I want it to skip the entire group “scale” if the option “no” of pain in the name column is selected. I am confused about where to place the code. Is it at the beginning or at the end of the group? The form can be deployed but the skip logic is not working.

If you want to skip a group then the relevant condition on the group must be outside of the group. whereas you presently have yours inside.

Look at how its done for your earlier consented group and follow the same pattern: you have the yes/no question first, outside, then follow it with your group with a corresponding show/hide relevant condition.

1 Like

HI,

Thank you. I have just updated the form and it now behaves perfectly according to my expectations.

3 Likes