Guys I need help, I did everthing step by step on the tutorial, but my page don't change to JavaScript "AJAX"
I Include this
<!-- Customise the Thankyou Message People See when they submit the form: -->
<div style="display:none;" id="thankyou_message">
<h2><em>Thanks</em> for contacting us!
We will get back to you soon!</h2>
</div>
and this
<script data-cfasync="false" type="text/javascript"
src="https://cdn.rawgit.com/dwyl/html-form-send-email-via-google-script-without-server/master/form-submission-handler.js"></script>
on my HTML FILE, but when the message it's sent the page go to the JSON of anyway.
What AM I missing?
I Prefer to show an Alert and redirect the user to the home page, but I not getting to do this, I put this on the script:
window.location("http://mywebsite");
but it's not redirecting
Hi @Herbert2122 seems like you got something working. Care to share the solution in case others have a similar issue? Hope it's all working for you now!
I Just change the id of my form, it was my mistake, I read again the tutorial and I Saw the line that talk about change the id of form and work it well.
Like this #78
I followed the step by step and tried many times. But the page is redirecting to Json Script Webpages. What's the solution for this? I use the same id which you followed after trying with my style of code. Sending message successfully stored in Google sheet. Getting messages. But redirection is happening with JSON Script. Please help me to overcome this situation
Usually means that the JS is not actually loaded or not targeting the form correctly.
Most helpful comment
I Just change the id of my form, it was my mistake, I read again the tutorial and I Saw the line that talk about change the id of form and work it well.
Like this #78