December 10, 200421 yr 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?
December 10, 200421 yr 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
December 11, 200421 yr Author 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.
Create an account or sign in to comment