Phone

This card can be used to obtain the telephone number of the website visitor.

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

 

{

"placeholder": "Enter your phone number"

}

valueNo​​The value to be prefilled in the input

{

"value": "97899914878"

}

errorNoThe 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.

Use Case:

Context Handler function:

Copiedresult = Map();
response = Map();
response.put("action", "reply");
response.put("replies", {"Awesome. Let’s get you started right away. Let me get a few details first.."});
response.put("input",
{
  "type":"tel",
  "placeholder" : "Enter your phone number", 
  "value" : "97899914878",
  "error" : ["Enter a valid phone number"]
});
prompt = Map(); 
prompt.put("param_name", "reply"); 
prompt.put("data", response); 
result.put("prompt", prompt); 
result.put("todo", "prompt");
return result;

Output: