That's OK.
I found the solution for this. For those who don't know continue reading: http://www.tectite.com/vbforums/showthread.php?t=104.
And you'll find it there.
Thanks.
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
Hi,
The HTML template works fine when all the fields had been filled up but it does not work if one of the fields are not filled up.
I've tried putting the hidden field:
<input type="hidden" name="mail_options" value="TemplateMissing=N/A" />
and it did not solve it.
I tried putting the hidden field:
<input type="hidden" name="mail_options" value="NoEmpty" />
and it did not solve it.
How do I work around this?
Thanks.
That's OK.
I found the solution for this. For those who don't know continue reading: http://www.tectite.com/vbforums/showthread.php?t=104.
And you'll find it there.
Thanks.
Okay, I'm having the same problem. What's the answer please?
Hi,
The solution is to specify "NoEmpty" in your mail_options field.
If you don't have a mail_options field, add this line into your HTML form:
If you already have one, then you need to add "NoEmpty" to the value, for example:Code:<input type="hidden" name="mail_options" value="NoEmpty" />
I expect that onlmega tried to create two "mail_options" fields, and that doesn't work in HTML.Code:<input type="hidden" name="mail_options" value="HTMLTemplate=fred.htm" /> becomes: <input type="hidden" name="mail_options" value="HTMLTemplate=fred.htm,NoEmpty" />
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
I actually got it to work with the mail_options "TemplateMissing=N/A". Is the only difference between the two options, that with the "NoEmpty" option returns all the empty fields with all blanks instead of the "N/A"?
Hi,
My answer isn't quite right regarding NoEmpty.
Here's the correct information:
NoEmpty
Only applies to a plain text email (the default that you receive from FormMail). If a field is empty and this mail_option is specified, then that field and its title will not be included in the email.
NoEmpty has no effect in an email template.
TemplateMissing
Only applies to template processing. By default, if a field is missing when processing a template, FormMail will treat this as a fatal error. The form submission will fail and an alert message will be sent to you.
If you want your template to work even when fields are missing, you must specifiy TemplateMissing in mail_options. You provide a string which FormMail will use in place of any empty fields.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Thank you for clearing that up. Can the value for TemplateMissing be a blank space?
Hi,
Yes, but generally I use it like this:
...completely empty string.Code:<input ... value="HTMLTemplate=blah.htm,TemplateMissing=" />
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks