0

I been developing a webpage and after sending an email using a google script I got this confirmation.

this screen

This is the form and the script

How can I hide this screen so the user doesn't have to see it.

Tân
  • 1
  • 15
  • 56
  • 102
  • 1
    Please include your code as **text** using a code block, *not as an image*. – MTCoster Nov 17 '18 at 18:11
  • Possibly a duplicate of https://stackoverflow.com/q/50919151/1813169 – MTCoster Nov 17 '18 at 18:12
  • Possible duplicate of [Redirect after processing a POST request in Apps Script](https://stackoverflow.com/questions/50919151/redirect-after-processing-a-post-request-in-apps-script) – MTCoster Nov 17 '18 at 18:12
  • You can use ajax request instead of submitting the form and getting the response printed to your browser! – Muhammad Nov 17 '18 at 18:13

1 Answers1

0

I had a similar issue on my website.

I will share my button + hidden redirect. I hope you can try this.

<button class="contact_button" type="submit" value="Send" onclick="thanks()">SEND</button>

 <!-- This is how to make a form input hidden -->

 <input type="hidden" name="*redirect" value="<YOUR_WEBSITE_URL>"
daniela-idara
  • 96
  • 1
  • 3
  • 11