0

I am trying to build web app based on Google Sheets. But for the interaction with user I need more then one HTML page.
The first one is easy to get:

function doGet() {
  return HtmlService.createHtmlOutputFromFile('Index');
}

But based on the response from the first page, I need to show the second page for detailed information.
For example: the first page is for log-in; the second page is for ordering.
How to run the:

HtmlService.createHtmlOutputFromFile('Index2');

Any help appreciated.

Peter

3

1 Answer 1

0

Add page to query string.

function doGet(e) {
  if(e.paramenter.page) {
    return HtmlService.createHtmlOutputFromFile(e.parameter.page);
  }else{
    return HtmlService.createHtmlOutputFromFile('Index');
  }

}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.