I try to use macro expression as value of the drop-down list for a form field but couldn't get it to work:
{% if (TravelOutside.value=="Yes") {"xxx@xxx.com","xxx@xxx.com"} else {"",""} #%}
I want the drop-down list to have the email when the TravelOutside field value is "Yes", otherwise blank.
Thanks! Wei Wang
{% if (TravelOutside == "Yes") {"xxx@xxx.com;xxx@xxx.com"} else {";"} #%}
or
{% (TravelOutside == "Yes")? "xxx@xxx.com": "" %};{%(TravelOutside == "Yes")? "xxx@xxx.com": "" %}
Thanks Peter, but none of them work :(
Thanks Peter, it's working now after I took off the macro brackets.
Please, sign in to be able to submit a new answer.