To hide ticket forms based on a user's organization in Zendesk, you need to use JavaScript to customize your help center's code. First, find the ticket form ID and the organization name. Then, edit the JavaScript in your theme's script.js file to remove the form option for users not in the specified organization.
Start by navigating to the Admin Center to find the ticket form ID and organization name. Then, in the Guide, customize the design by editing the script.js file. Use the provided code snippet, replacing the form ID and organization name with your specific details. This method relies on jQuery, so ensure it's imported if your theme uses Guide Templating V2. For more details, check the originalZendesk article.
To find a ticket form ID in Zendesk, navigate to the Admin Center and go to the Ticket Forms page. Select the ticket form you want to work with, and look at the URL in your browser. The ID number will be located after the last slash in the URL….
To find an organization name in Zendesk, go to the Admin Center and navigate to the People section. From there, you can browse or search for the organization you need. Once you find it, note down the exact name as it will be used in your JavaScript…
When editing JavaScript to hide ticket forms in Zendesk, ensure you copy all characters correctly, such as semicolons and braces, to avoid errors. The code uses the DOMNodeInserted Mutation Event, which is not supported in newer Chrome versions, so…
No, the method for hiding ticket forms based on a user's organization in Zendesk does not work for unauthenticated users. For these users, all ticket forms will be displayed regardless of the organization settings. This limitation means that the…