Is there a way to avoid the empty fields to be sent on the email?
I have a very long multipage conditional form, which I believe most times won't have all fields completed. I'd like to reduce the size of the email (and possibly the bandwidth usage), by not posting these fields.
Thanks!
Luciano
I have a very long multipage conditional form, which I believe most times won't have all fields completed. I'd like to reduce the size of the email (and possibly the bandwidth usage), by not posting these fields.
Thanks!
Luciano
Hi Luciano,
Yes, but at a price in your time.
You'll need to re-code your email template using PHP to check which fields have entries and skipping over teh ones that don't.
Bob
Yes, but at a price in your time.
You'll need to re-code your email template using PHP to check which fields have entries and skipping over teh ones that don't.
Bob
Thanks Bob.
Can I include the PHP code directly in the Chronoforms email template?
Luciano
Can I include the PHP code directly in the Chronoforms email template?
Luciano
Hi Luciano,
Yes - PHP must go inside <?php . . . ?> tags. To enter PHP (or raw HTML) correctly in the Email template you need to turn off the HTML Editor in the Email Setup Properties Box, then save the form. When you re-open the form the Template edit box will be a plain textarea and code will save correctly.
Bob
Yes - PHP must go inside <?php . . . ?> tags. To enter PHP (or raw HTML) correctly in the Email template you need to turn off the HTML Editor in the Email Setup Properties Box, then save the form. When you re-open the form the Template edit box will be a plain textarea and code will save correctly.
Bob
This topic is locked and no more replies can be posted.
