1
votes

Couldn't see any option available for the TextInput widget to obscure a user's input for fields like password, etc.

https://developers.google.com/apps-script/reference/card-service/text-input

1
Edit.. Nm sorry. - Randy D
Check the Serve HTML as a Google Docs, Sheets, or Forms user interface guide in creating your custom UI for your google app script apps by using Custom Menus. - noogui
I don't think HtmlService is available for Gmail add-ons... It keeps showing "markup" related error when that's used... - user3275211
This is good workaround -- stackoverflow.com/a/49010224/3275211 - user3275211

1 Answers

1
votes

In the overview section of the CardService, It quotes:

“Currently you can only use this service to construct Gmail add-ons.“

So HtmlService is not available in constructing Gmail addon’s currently. And there is no option In the CardService object to obscure the textInput widget. The reference says when constructing your addon to keep it simple, nothing complex. You may want to rethink your use-case for your addon.