Hi,
Correct, TemplateMissing is now optional.
What's the URL of your form? I'll take a look.
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
Hi,
I've got a set of forms on a site and I just upgraded one of them to to FormMail 8.24. I was under the impression that I no longer needed to add the TemplateMissing parameter to the mail_options input to handle empty fields, but now I'm getting some strange errors...
"Error=Failed to send email" combined with a slew of "*field name* is not a field submitted from the form" errors.
It seems that only the form fields left blank during submission are causing the issue. Also, in the returned error message, I see that any field left blank returns in the following pattern - formfield: '' - note the single opening quote. The fields that are completed return as expected - formfield: "field contents", with open and close quotes.
The other forms (version 8.12) are working properly, but they all have the TemplateMissing="N/A" parameter in place.
What I'd like to have happen is when a user submits the form, any blank fields are also left blank in the resulting HTML email we get back. Our forms have a lot of optional fields and all those N/A's can be distracting when trying to digest the data that was provided. I suppose I can add "TemplateMissing=" to the input, but again I thought this was the default behavior for 8.24.
Insights? Thanks!
Hi,
Correct, TemplateMissing is now optional.
What's the URL of your form? I'll take a look.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
The form is located here:
https://www.cornerstoneent.com/patie...ormation-form/
Hi,
That form is still using version 8.12 of FormMail.
Did you forget to upload the upgraded version?
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Yea... gawd, I see what happened now. It looks like one form was updated to remove the TemplateMissing parameter, while another form got a FormMail script upgrade. Fail.
Thanks for the prompt response. I apologize for the oversight and for wasting your time. I should have caught the version discrepancy with the testalert... =\
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks