Password field in Gmail add-on

751 Views Asked by At

I'm new to Apps Script.

I have created the login form using the card services in the Apps Script.

I have created the text field for getting the username from the user. Like that, I also want to create the password field to get the password from the user. For this, I didn't get the password field in the card service like the text field.

How can I make this field as a password field? Or how to create a new password field?

Example code to create text field:

var textuserName = CardService.newTextInput()
    .setFieldName("text_username")
    .setTitle("Username")
    .setHint("Please enter username");
   loginSection.addWidget(textuserName);
0

There are 0 best solutions below