refresh the Web App or the web page

79 views
Skip to first unread message

Pieter le Roux

unread,
Apr 19, 2023, 2:38:29 PM4/19/23
to Google Apps Script Community
Hi, 

I have a Web App with a table and a button that successfully runs a script on a Google Sheet which changes the data in the table in the Google Sheet but the Web App still needs to be refreshed manually to show the new data. Is there a way to refresh the web page or the Web App without having to hit refresh manually?
Message has been deleted

Web Dev

unread,
Apr 19, 2023, 3:12:34 PM4/19/23
to Google Apps Script Community
your client script:
function pushProjectCompleted(something){
    //do something after successHandler
}
function submit(){
    google.script.run.withSuccessHandler(pushProjectCompleted).pushProjectChanges(data);
}

your server side script (some.gs file):
function pushProjectChanges(data){
    return JSON.stringify({something});
Reply all
Reply to author
Forward
0 new messages