Hi
I am a developer new to Zendesk and trying to get to grips with our companies Zendesk web widget. I'm just trying to understand how it works and where the actual functionality is implemented. I can see on our pages Help Centre the code to initiate the web widget. What I want to do is understand how to change the functionality. For example we have a 'Contact us' button and one of the options is 'What is your question about?' This is a drop down with a number of fields, one of which is 'Where's My Order?' When these fields are selected where is the functionality behind them? How do I modify what happens when these options are selected for example? Is this part of the Zendesk API? Any help is very much appreciated.
Steve
Based off your original post, it sounds like the web widget is making use of the Contact Form API to present users a list of forms when submitting a request. These forms are pulled directly from the Zendesk instance that the web widget is associated using the contactForm object and a ticketForms array. Once the form has been submitted, this automatically creates a ticket in the Zendesk instance.
Unfortunately, there isn’t a way to present a response to the user directly in the classic web widget once they’ve created a ticket form. For this type of functionality, you might want to take a look at messaging, along with Make an API call step in Flow Builder.
An alternative within the scope of the classic web widget could be to have the user submit the form which creates a ticket, which’ll then execute a trigger that notifies a webhook to make a call to a piece of middleware that’ll return the data and update the ticket with the required information, and notify the user via email.
I hope this helps! Feel free to reach out with any questions.
Tipene