After form submission, my thank_you message no longer appears. I just have a gray screen with a weird face on it. Any help would be appreciated. The page is located at: https://freece.com/content/activityProposalSubmission
The code file is located at: https://www.freece.com/Files/Content/activityProposalForm(005).html
Any help would be greatly appreciated!!!
Looks like your form sets the ID and not the class. The form needs class=gform, not id, so that the custom JS overrides the default behavior of the form. Hope that helps!
Thank you!!! That fixed the issue. The thank you message now displays underneath the form. It used to clear out the entire form and show the message. The form no longer clears out, but at least the message now displays. I'm assuming it is from the js code being altered.
Thanks again!!! I'll live without the form clearing for now. :)
See #283 for the form not clearing out. That is strange that it used to do that but doesn't. Thanks for posting the update, and I'm glad to hear that fixed it!!
It looks like I need to add form.reset(); to the onreadystatechange. However, I don't see onreadystatechange anywhere in my code. I apologize for sounding naive.
it's there, and that works. thanks!
xhr.onreadystatechange = function() {
form.reset();
}
Most helpful comment
Thank you!!! That fixed the issue. The thank you message now displays underneath the form. It used to clear out the entire form and show the message. The form no longer clears out, but at least the message now displays. I'm assuming it is from the js code being altered.
Thanks again!!! I'll live without the form clearing for now. :)