Server response handlers for google.script.run

How to specify BOTH success AND a failure handler for the same server call using google.script.run?

+5
source share
1 answer

The following code should do what you need

google.script.run.withFailureHandler(myFailureHandler).withSuccessHandler(handler1);

This is documented in a paragraph Success and Failure Handlers. The text begins with

You can use any combination withSuccessHandler, withFailureHandler, and withUserObject.

+9
source

All Articles