URL
This card can be used to obtain the URL from the website visitor.
Attributes | Mandatory | Description | Values |
type | Yes | The type of input to be displayed to the visitor | url |
placeholder | Yes | Default text that is displayed before the input is given
| { "placeholder": "Enter the URL" } |
value | No | The value to be pre-filled in the input | { "value": "www.zylker.com" } |
error | No | The error message that is displayed when invalid input is given | { error: {"Please enter a valid URL"} } |
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":"url",
"placeholder" : "Enter the website URL",
"value" : "www.zylker.com",
"error" : ["Enter a valid URL"]
});
prompt = Map();
prompt.put("param_name", "reply");
prompt.put("data", response);
result.put("prompt", prompt);
result.put("todo", "prompt");
return result;