â10-28-2019 04:10 AM
Hi,
I am looking to see if there is a way to set a pre-chat field as mandatory in the Bubble chat widget. However, the bubble chat HTML code that we can download from UCCX calls a Javascript in turn and does not contain the "fields code" to edit.
Thank you!
â02-09-2021 12:01 PM - edited â02-09-2021 02:07 PM
Hi, I know this post is years old, but I just wanted to reply and possibly help someone else to figure this out since it took me a little while. If you want to have required fields before chat, the only way I found that we were able to do it (since it appears that the cisco form is being generated in an iframe) was by creating another small form the same size as the chat as an overlay/preliminary form. Then make the values on your first form required, have a next button that launches the cisco chat upon successful validation, and passes your required values into the Cisco chat via the formData object as described in the comments at the top of the bubble chat code. Note that if you match the name of the property in the formData object to the field name in the cisco chat, you will actually see the values populate. (Be sure to use quotes around the formData object property name if there are spaces in the field name).
â07-06-2021 05:58 AM
â07-06-2021 08:22 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide