I am trying to work out the syntax for a report to only show a section of the report when certain options are selected.
i know that i can use ${if fieldname | selected: "option1"}...${/} which return true if that value is selected, however i have 141 options in my choice list which then relate to 25 section of the report.
Survey 123 connect syntax for these options would involve a regex with something along the lines of if(regex(${fieldname},"option1 | option2 | option3 | option4",value if true, value if false) but i cant seem to get the same syntax working in reports
I have tried ${if fieldname| selected: "option1 | option2 | option3 | option4"}...${/} but this doesnt appear to work.
Does anyone know what the correct syntax may be? Additionally if this also works for select_multiple that would be great but i understand that may open up a whole other set of issues!