Password

This card can be used to collect passwords from the website visitor.

AttributesMandatoryDescriptionValues
typeYesThe type of input to be displayed to the visitorpassword
placeholderYesDefault text that is displayed before the input is given

 

{

"placeholder": "Enter your name"

}

valueNoThe value to be prefilled in the input

{

"value": "patricia"

}

Note

Once the visitor enters the password and sends it, the text entered will not be available in the chat or in the transcript. It will be available in the message object of the bot during execution in the following format,

{
       "meta":{
                      "card_data":{
                                              "type":"password",
                                               "value":" patricia"
                                             },
                                            "version":"1"
                     },
      "text":"*********",
      "type":"text"
}

 

and it has to be taken as below,

password = message.get("meta").get("card_data").get("value");

 

Use Case:

Copied"user_defined": {
  "zohosalesiq": {
    "replies": ["Enter your password"],
  "input" : {
"type":"password"
}
  }
}