Forum
Form Email Template
I have a quote form with around 30 product choices and options available to add to a quote. Using javascript, the totals are calculated finally emailed to the prospective client. I need to customise the email sent out but only list items in the email which have been chosen.
Currently for each product I have the following table rows:
<tr><td>Product 1</td><td><perch:email id="productone"></td></tr>
<tr><td>Product 2</td><td><perch:email id="producttwo"></td></tr>
<tr><td>Product 3</td><td><perch:email id="productthree"></td></tr>
Is there any way I can omit the rows where the products have not been selected rather than displaying the product name alongside a blank table cell.
Can you not use
perch:if
to test if the value exists?I tried perch:if but didn't seems to work on the email
Scrub that, I'm still an idiot; perch:if does work.
Thanks