0

I am working with a web app. I have a button that activates a function in a .gs file that retrieves data (an array of numbers). I need to send this data over to the html to be displayed. I have tried returning the .gs function but that does not give an output.

2
  • 3
    Take a look at templated html in the documentation. If you don't like templated html you can use the onReadyState event to get the data from the server using google.script.run.withSuccessHandler().functionName() also in the documentation Commented Sep 25, 2020 at 17:42
  • 1
    This is perfect! Thank you so much! please post this as an answer so I can mark this as answered for other people to see. Commented Sep 25, 2020 at 18:38

1 Answer 1

1

Take a look at templated html in the documentation. If you don't like templated html you can use the onReadyState event to get the data from the server using google.script.run.withSuccessHandler().functionName() also in the documentation – Cooper

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.