0

I am developing google calendar add-on using CardService, Is there any method available for adding password input box in calendar add-on using apps script.

For other google services, It can be added using HTML Service and by using SpreadsheetApp.getUi() like method, for calendar .getUi() does not seem to be available.

Does anyone have an idea about this? Thanks in advance.

Sonal Shah
  • 41
  • 4

1 Answers1

0

No, between the methods supported for the Card Service class there's no way to create a password input, the most similar one would be the TextInput class.

Workaround 1:

Use a TextButton to open a link in another window where you could have an application with the password input (e.g a link to a Web App).

Workaround 2:

Using an onChangeAction from the TextInput to manipulate the value from the text input and return the card element again to the user (as explained in this answer). This would involve having to store the updated value from the text input, using the Properties Service for example, and changing the value of the text input to the same number of character the user has typed but replacing the characters with '*'.

Andres Duarte
  • 3,166
  • 1
  • 7
  • 14