Drop Down Menu Value vs Select Option | Community
Skip to main content

Drop Down Menu Value vs Select Option

  • March 16, 2021
  • 3 replies
  • 0 views

Good afternoon,

I created a drop down menu in ticket fields. I named one of the options Q Drive. When i collect the selected value the user picks, it returns to me q_drive so i believe Zendesk changes the value on the backend. How can get the selected value rather than hidden value from a dropdown.

$("#request_custom_fields_1260808799070").val(); returns q_drive

and $("#request_custom_fields_1260808799070").text(); does not work

 

3 replies

Integriq
  • March 17, 2021

Hi @Patrick Bernardi

Welcome to the Zendesk Community!

Please try this:

$("a[aria-labelledby*=1260808799070]").text();

Hope this helps!!

-sushant


  • Author
  • March 17, 2021

thank you very much, that worked.


  • November 3, 2022

How can we do the same for a Date field?  ie, get the Date the user selected?