I'd like to have some of the options in a custom dropdown field hidden from the end user when they submit a new ticket. The end user must first select a form and then the topic related to the form (this is the dropdown field). Because some of those options are not appropriate for an end user I'd like them hidden. The hidden options would be displayed for the agent when they work the ticket or create a new one.
I've been doing research on multiple support documents and found one (https://support.zendesk.com/hc/en-us/articles/218035948) that said the language could be hidden in the language dropdown. Here's the snippit:
$("ul.dropdown-panel li a:contains('Français')").hide();
I'd like to do something similar but I think I also have to base the hide logic on which Form the end user selected.
I also found another support document (https://support.zendesk.com/hc/en-us/community/posts/203457426-Conditional-dropdown-field-sample-Conditions-based-on-tags-Web-portal-) that spoke to hiding dropdown options based on the organization. Here's the snippit:
1. You have a two groups of custumers organizations. Enterprise organizations tagged by "enterprise". Small organizations tagged by "small"
You have a dropdown field "Type of service" with items
a. Ticket support (tagged as "ticket_support")
b. Request for change (tagged as "request_for_change")
c. Personal consultation (tagged as "personal_consultation")
d. Fix bug in place (tagged as "in_place")
And you want to hide c. and d. items from dropdown for organization tagged by "small"
The problem with the second piece of logic is that it's written for the HTML code on the New Request page. I'd like to create the logic to be added to the jQuery section of the Help Center.
I'd also need to base the logic on the Form selected.
We are using the Conditional Fields app to dynamically display fields on the new request page for an end user but I can't control individual options on a dropdown menu with that app.
Can someone suggest a solution?
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.