Conditional in report template on multiple choice question does not pass syntax check

77
1
Jump to solution
4 weeks ago
MikeOnzay
Regular Contributor

For testing, this report template only contains this one question. 

${if issue_frequency | selected: ”regularly_after_rain”} ${/} 

Error: An error occurred when checking the report template. Failed to parse ${if issue_frequency | selected: ”regularly_after_rain”} since selected is not supported. 

***

Why is 'selected' not supported?

From the Help guide:

  • ${if multiple_choice1 | selected:"A"} displays the section only if the multiple choice question has had the choice 'A' selected.

 

 

0 Kudos
1 Solution

Accepted Solutions
MikeOnzay
Regular Contributor

This post by @Jim-Moore gave me the answer and passed the syntax check. 

== is equivalent to selected

 ${if issue_frequency == ”regularly_after_rain”} ${/} 

View solution in original post

0 Kudos
1 Reply
MikeOnzay
Regular Contributor

This post by @Jim-Moore gave me the answer and passed the syntax check. 

== is equivalent to selected

 ${if issue_frequency == ”regularly_after_rain”} ${/} 

View solution in original post

0 Kudos