Forum

Thread tagged as: Question, Forms

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.

Richard Lowe

Richard Lowe 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you not use perch:if to test if the value exists?

Richard Lowe

Richard Lowe 0 points
Registered Developer

I tried perch:if but didn't seems to work on the email

Richard Lowe

Richard Lowe 0 points
Registered Developer

Scrub that, I'm still an idiot; perch:if does work.

Thanks