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

507
1
Jump to solution
04-22-2021 01:43 PM
MikeOnzay
Occasional Contributor III

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
Occasional Contributor III

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
Occasional Contributor III

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

== is equivalent to selected

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

0 Kudos