Customer client fields are displayed for the operator, in the client information panel.
We will not display your additional (custom) data in the Contact form on the website, unless you have that field.
If you send data into the existing field of the Contact form, we will prefill it with the data you transmit.
If you send a value that does not exist in the Contact form, then this information will be sent only to Operators into their messengers under the Info section.
If you send all values to all existing fields, then we'll not display any Contact forms to your client.
Client fields are passed through the fields
parameter in the widget code:
<script>
window.replainSettings = {
id: '<chat ID>',
// customer fields
**fields**: {…},
};
(function(u){var s=document.createElement('script');s.type='text/javascript';s.async=true;s.src=u;
var x=document.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);
})('<https://widget.replain.cc/dist/client.js>');
</script>
Object
An object with client's fields. Enter the name of the field as a key.
Built-in keys:
name
— client nameemail
— client emailphone
— client phone numbertoken
— the client's internal token, which is not displayed anywhere but is transmitted via Webhooks, it can be used to identify or verify the user<aside> 💡 To link the Contact form field, you set as a key - the field's key, that is specified in the Edit field section of the Forms add-on. Then the value of this field will be prefilled in the form
</aside>
⚠️ If the previously set field is removed from the fields
object, then the next time the client visits the site, the field will be removed from the system.