Hide ticket forms based on user's organization (Professional Add-on and Enterprise)

Have more questions? Submit a request


  • Drew Hayes


    Thanks for sharing! As I am not an experienced coder by any means, would you please point out which portions of your code need to be replaced (forms, tags, etc.) within your example before I try to implement it and get something wrong? I tried in testing a bit, but apparently did something incorrect. 

  • Ryan M Mayes

    Hi Drew,

    Using the code as-is, add a prefix to each ticket form name that matches a tag on the users that you want to see that ticket form.

    For example:

    User John has tag "learner". If you rename a ticket form to "learner - repair form", John will be able to see the form, but other users who do not have the "learner" tag will not be able to see the form.


  • Drew Hayes

    Ahh - Thanks, Ryan. That makes sense. Too easy - I was trying to over complicate it! :) 

  • Jessie Schutz

    Hey Ryan! 

    Thank you so much for coming back to answer questions about your comment! If you'd like, feel free to write it up for our Tips & Tricks topic. You'll get swag in addition to fame. :)

  • Dan Derks

    Hi Ryan!

    In the midst of expanding my org's use of ZenDesk to include internal support. I want to create a form that only folks who are tagged with 'isr' (Internal Support Requester) can see. I copied your original code into my script.js file and have renamed a form 'ISR - request', but the form remains publicly available.

    Any guidance (though you've provided more than enough over the years!) would be appreciated :)



  • Mike West

    What's the best method for hiding a specific form always, regardless of the user's organization or any other criteria?

    I have a form that I'd like to link to from a very specific Help Center article only. I don't want a user to ever be able to select this form from the drop-down list.

    Thanks in advance.


  • Jessie Schutz

    Hi Mike!

    I imagine that you can use code similar to this to hide the form from all users, rather than just certain users. All this does is remove it from the dropdown so users can't select it - the form still exists, and you should be able to link directly to it. I can't help with code specifics but we have plenty of helpful tips provided by community members that can help get you started!


Please sign in to leave a comment.

Powered by Zendesk