RobR Posted December 10, 2004 Posted December 10, 2004 When my users successfully complete a form, they are taken upon "submit" to an intermediary page that tells them the form is being submitted. A tag on the page sends them a confirmatory email with the following: <META HTTP-EQUIV="refresh" content = " 1; URL=FMPro?-db=DB_.fp5&-format=thanks.html&-mailto=[FMP-Field: Lister Email]&[email protected]&[email protected]&-mailsub=Thanks for your submission&-mailhost=server.my.com&-mailformat=mail.txt&-recid=[FMP-Currentrecid]&-Find"> This works fine so long as the user completes the form successfully before submitting. If, however, he forgets to add a required field (which are designated as required within the field list in FMP) and are redirected back to the form, the mail will sometimes not get sent when they re-submit after successfully completing the form. Can't understand why this should make a difference. Any thoughts?
Garry Claridge Posted December 10, 2004 Posted December 10, 2004 Can you send the email with an "onload" or an InlineAction? Can you also do the Form validity checking with Javascript? All the best. Garry
RobR Posted December 11, 2004 Author Posted December 11, 2004 Hi Garry -- I've tried using JavaScript validation, but it had the same result. I have also tried using an "onload" code as folows: <body onload="document.location='FMPro?-db=DB_.fp5&-format=thanks.html&-mailto=[FMP-Field: Lister Email]&[email protected]&[email protected]&-mailsub=Thanks for your submission&-mailhost=server.address.com&-mailformat=mail.txt&-recid=[FMP-Currentrecid]&-find';"></body> Which doesn't send a mail at all. Probably my fault. This is a weird error. The meta tag method above works fine, when it works. Sometimes it does, sometimes it doesn't. I think it relates to the user being redirected after a failed validation, but even then it sometimes sends a mail.
Recommended Posts
This topic is 7279 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now