Recent searches
No recent searches
How to disable the ticket form dropdown?
Answered
Posted Oct 01, 2018
Does anyone have some custom javascript that would allow me to disable the dropdown for form submission when someone lands on a specific form? I've tried everything but it seems like the from request drop down doesn't behave like a normal drop down.I want this to be un-selectable when a user lands on a certain form. There a few hidden forms we send users to from time to time but if they click on the drop down, they can navigate out of that form and not be able to get back. Any help would be extremely appreciated!
0
38
38 comments
Ifra Saqlain
David, you can set your specific form as default form via Admin Center and then remove the dropdown using the Sam's code.
0
Brandon
Well, that simply creates a blank "Submit a Ticket" page.
This is after I'm integrated:
$(document).ready(function() {
$(".request_ticket_form_id").hide();
});
0
Ifra Saqlain
Hey Devid, try this. You can set a form as default which you want and deactivate another which you don't want.
https://support.zendesk.com/hc/en-us/articles/4408836460698-Managing-your-ticket-forms
And then hide dropdown if needed.
0
Morteza
Hi Sam!
The code you sent works but I think you missed a very important part that when clicked on "Submit a request", it should give a specific form and not an empty page.
Because right now, it just deletes the whole dropdown functionality, which is the goal here, but we would also like it to show one specific form to a specific end-user.
Background and the problem:
We have multiple ticket-forms but we have customized the view (js code) so that every ticket-form is shown to one specific organization. So, even though this is the case and there is only one ticket-form every time, there is a dropdown menu with only one ticket-form which is kind of unnecessary.
Is there any way to do this and still show one specific ticket-form to different organization?
0
Morteza
"David, you can set your specific form as default form via Admin Center and then remove the dropdown using the Sam's code."
Hi Ifra Saqlain, in that case, one has to delete all other forms that are in use. The whole idea is to get rid of dropdown menu because there are multiple hidden forms for other usage, shown to different organizations.
So, lets say that there are 3 forms A, B and C. And 3 different companies company1, company2 and company3.
The forms are customized in a way that form A is only shown to company1, form B is only shown to company B and form C is shown to company3. The problem is that when you click on submit, there is still a dropdown menu, when you want different companies to land on their respektive forms and not get a dropdown menu despite having one form to show.
1
Ifra Saqlain
@Morteza, I think we can check organization via js code and then hide/show any field.
0
Naomi Lewis
I am in the exact same position as Morteza and would be very grateful if someone can provide a solution!
We have set it up so a user's organisation determines the form they are shown, but we don't want them to have an additional step of selecting that single form from a dropdown.
When only one ticket form exists, the user is taken directly to the ticket form when submitting a ticket, but now multiple forms exist, the dropdown comes up regardless of how many (or rather few) options are present. We are looking for a way to make it so the user is taken directly to the applicable form when they submit a ticket.
0
Simon ATUYER
Hi Sam,
I tried the code, but it doesn't work. Either I manage to hide the form in the drop-down list, but when I access the form via my shortcut placed in the header and I fill it out, at the time of sending, I get the error described upper. Either way, I just can't make it disappear. My goal is for it to be invisible in the drop-down list but accessible in my shortcut
Can you help me?
0