With the current version of the js-api it is only possible to set name and email-address. But ofter there are other data that the website already knows if the customer is logged in, e.g. the customer's id.
It would be awesome if all field in the pre-chat-form can be filled/controlled with the js-api
Hi there Matthias,
We see that quite a few of you are asking for this feature and we would love to give it to you but the problem is that to get this information, our Widget has to be integrated with the specific platform which us used as the backbone for the website. We have a few now and will expand further.
What is the platform that you use so we know for what to build the integration first?
Anything happening with this one?
But what about using the JS API? it would be cross platform that way.
This would be really useful!
Pizzaria Meu Rancho commented
This looks promising. It'd really be great if we could fill up the pre form with or logged in customer's data.
We'd be happy with a hidden, pre-populated field because our application does a find and replace on whatever we tell it to so we can populate the field ourselves. We just need the field hidden so it's not viewable to the user and something to write in. :-)
we use PHP as backend and jquery with angularjs for our frontend. The most basic solution I can think of would be to set these values via a js-variable (a bit like the datalayer in Google Tag Manager). Your widget can check if such data are set and submit them along with the form.