2

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);
Kos
  • 4,890
  • 9
  • 38
  • 42
Manikandan C
  • 668
  • 1
  • 9
  • 22
  • You aren't expected to provide a login and password card within the add-on. Please review the Gmail addon documentation regarding authorization of external services https://developers.google.com/gmail/add-ons/how-tos/non-google-services https://developers.google.com/gmail/add-ons/guides/restrictions#wzxhzdk9wzxhzdk10charge_users_to_install – tehhowch Sep 19 '18 at 13:50
  • Possible duplicate of [Password type field in gmail card service](https://stackoverflow.com/questions/47904710/password-type-field-in-gmail-card-service) – tehhowch Sep 23 '18 at 23:59

0 Answers0