Customer client fields are displayed for the operator, in the client information panel.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/dac7dddf-3b6b-40a5-90a4-2705f605ecbc/add-fields.gif

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>

Setting Type

Object

Description

An object with client's fields. Enter the name of the field as a key.

Built-in keys:

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