I'm currently working on an ODK form in Excel (then converting using the XLS form tool) and having some difficulties with my "relevant" cells. E.g. I would like a certain question to only display for people who have selected [yes for add_contracep AND yes for pam_extra] OR [yes for add_contracep AND yes for pam_sometimes] - I've therefore written the following:
selected(${add_contracep}, 'yes') and selected(${pam_extra}, 'yes') or selected(${add_contracep}, 'yes') and selected(${pam_sometimes}, 'yes')
but I don't think it's working as intended so I'm wondering if I can/need to put some extra brackets around the [add_contracep AND pam_extra] or [add_contracep AND pam_sometimes]. Is this possible/necessary? I would be so grateful if someone could advise me on how to sort out this issue!
I'm currently working on an ODK form in Excel (then converting using the XLS form tool) and having some difficulties with my "relevant" cells. E.g. I would like a certain question to only display for people who have selected [yes for add_contracep AND yes for pam_extra] OR [yes for add_contracep AND yes for pam_sometimes] - I've therefore written the following:
selected(${add_contracep}, 'yes') and selected(${pam_extra}, 'yes') or selected(${add_contracep}, 'yes') and selected(${pam_sometimes}, 'yes')
but I don't think it's working as intended so I'm wondering if I can/need to put some extra brackets around the [add_contracep AND pam_extra] or [add_contracep AND pam_sometimes]. Is this possible/necessary? I would be so grateful if someone could advise me on how to sort out this issue!