Data-binding / add dynamically an option to a drop-down list | Community
Skip to main content

Data-binding / add dynamically an option to a drop-down list

  • October 29, 2020
  • 3 replies
  • 0 views

Hi,

I have some drop-down lists in my request form which require regular updates (adding new options) like product version, etc.

Is there a way to let end-users add an option to a drop-down list in the request form in case we failed to updated these lists in time?

What I am thinking to do is: when an user selects "other" in my my drop-down list,

with the conditional field feature, I will show a text field where the user will type a value.

Once the form submitted, in the back-office, an agent can manually add this value to the drop-down list, but I was wondering if it's possible to have this done automatically.

Another idea would be to populate the drop-down with a data stored in our company's centralized document (on  Sharepoint for instance). I prefer the first solution, but would this be possible at all ?

3 replies

  • October 29, 2020

Anais

I believe it would be possible to automate adding the new dropdown option, but you would need some JavaScript in Guide to do it. You would need code that would detect that a value was filled in, and then use the Zendesk ticket field API according to this link to update the ticket field options. Alternatively, if you want the code to run on the Support side, you would need to write a Zendesk app to update the options.

To populate the dropdown with data stored on Sharepoint, you could build a script that accesses the data, then uses the Zendesk ticket field API to update the dropdown options. This seems like it could be a standalone task, so could be written in any language.

Hope this helps


  • October 30, 2020

Karen,

Thank you very much for your prompt reply.

I'm a newbee to Zendesk, especially to Zendesk API, so I'm glad to know that this is possible, I'll take a look at the documentation.

Thanks again !


Laura28
  • February 4, 2021

Hi @Anaïs , if you are still looking for solution to easily populate your drop list from an external data source, there's a new app that could help: Elements Connect 

You wouldn't have to build your own script, although you will need to create a basic SQL query.