Email response when form submitted

By: Sandeep Lokhande | Asked: 10/24/2024
ForumsCategory: General questionsEmail response when form submitted
Sandeep Lokhande asked 6 days ago
I am trying to show the list of items selected by user in the email response.  Here is my sample short codes in email template: [if 179 equals="1"] * [178] : [192] [/if 179]
[if 301 equals="1"] * [183] : [272] [/if 301]
[if 278 equals="1"] * [277] : [279] [/if 278]
[if 318 equals="1"] * [317] : [289] [/if 318]
[if 331 equals="1"] * [330] : [332] [/if 331] My problem is, it leaves empty space in email wherever the condition does not match. Here is the output:
 * Basketball Male : ₹ 15,000.00 
 * Female : ₹ 15,000.00 









 * Bowling Team : ₹ 7,000.00    Can experts guide on how to solve this issue?      
1 Answers
Rob LeVineRob LeVine answered 5 days ago

I see two ways to solve this. I prefer using the HTML strategy that the default-html message employs and use tables. To do this, clear out what you have in the message body, click the ..., go to the Advanced tab, and choose Default HTML. Then you can customize it as you wish. A row is only displayed if there's a value for it. The other solution is to add CSS to the email body to remove the margins from the paragraph tags. Something like this: p {margin:0}

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right