-1

I have already build a script of a form validation. I have connected apps script to google site where html form is present. I want to redirect page after a form submission and it will redirect to a new html page (submitdata.html).

Rubén
  • 34,714
  • 9
  • 70
  • 166

1 Answers1

0

The following might help you.

function doGet() {
  return HtmlService.createHtmlOutput(
    "<form action='submitdata.html' method='get' id='redirect'></form>" + 
    "<script>document.getElementById('redirect').submit();</script>");
}

Ref : Automatically Redirecting to a Page in GAS

Community
  • 1
  • 1
Avinash
  • 4,115
  • 2
  • 22
  • 41