Phone
This card helps to get the telephone number in a placeholder.
| Attributes | Mandatory | Description | Values | 
| type | Yes | The type of input to be displayed to the visitor | tel | 
| placeholder | Yes | Default text that is displayed before the input is given 
 | { "placeholder": "Enter your phone number" } | 
| value | No | The value to be prefilled in the input | { "value": "3453554344" } | 
| error | No | The error message that is displayed when invalid input is given | { error: {"Please enter a valid phone number"} } | 
Note:
In order to update the values obtained here inside Zoho SalesIQ, you can make use of field_name.
Channel compatibility and limitations



 
   
   
  
The bot will collect all general details such as name, email address, phone number, and other information as similar to website.
Use Case
Copied{
  "type":"tel",
  "placeholder" : "Enter your phone number", 
  "value" : "3453554344",
  "error" : ["Enter a valid phone number"]
}Copied//Context handler function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {"Your contact number to schedule the order?"});
response.put("input", {
"type":"tel",
"placeholder" : "Enter the phone number", 
"value" : "3453554344",
"error" :{"Enter a valid phone number"},
"country_code":"+1"
});
prompt = Map(); 
prompt.put("param_name", "reply"); 
prompt.put("data", response); 
result.put("prompt", prompt); 
result.put("todo", "prompt");
return result;
//Execution function
result = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {"Your contact number to schedule the order?"});
response.put("input", {
"type":"tel",
"placeholder" : "Enter the phone number", 
"value" : "3453554344",
"error" :{"Enter a valid phone number"},
"country_code":"+1"
});
result.put("data", response);
return result;Copied{
  "platform": "ZOHOSALESIQ",
  "action": "reply",
  "replies": ["Your contact number to schedule the order?"],
  "input":
    {
      "type":"tel",
      "placeholder" : "Enter your phone number", 
      "value" : "3453554344",
      "error" : ["Enter a valid phone number"]
    }
}Copied"user_defined": {
  "zohosalesiq": {
    "replies": ["Your contact number to schedule the order?"],
  "input" :
   {
     "type":"tel",
     "placeholder" : "Enter your phone number", 
     "value" : "3453554344",
     "error" : ["Enter a valid phone number"]
    }
  }
}Copied"channelData": {
  "zohosalesiq": {
    "replies": ["Your contact number to schedule the order?"],
    "input" : {
	"type":"tel",
  "placeholder" : "Enter your phone number", 
  "value" : "3453554344",
  "error" : ["Enter a valid phone number"]
    }
  }
}




