Disable toast notification or change error message in google apps script add-on

45 Views Asked by At
  1. I'm working to create an add-on using the Google Apps script. Almost everything is completed and working fine.
  2. I have a text field of auto-suggestions from the server side(basically data will come from the backend through fetch API call). Fetch functionality and auto-suggestions everything is working fine.
  3. But, while fetching the data or typing on the text fields, keep on getting "Server failed to fetch the suggestions" error toast notification.
  4. Somehow I need to block(disable) the toast notification or change error text to Loading...
    var txt_search = CardService.newTextInput()
    .setFieldName('txtfield_service')
    .setTitle('Enter Service Name')
    .setHint('Enter at least 4 characters.') 
    .setSuggestionsAction(
      CardService.newAction().setFunctionName("getallservices")
    );

snapshot for error message

Kindly help me on this, I am completely stuck on this issue. Almost everything is ready, the client is telling me to block the error toast notification.

Thanks, In advance.

GopalaKrishnan.R

0

There are 0 best solutions below