Created
March 2, 2016 20:29
-
-
Save moderatorwes/4cb9c2647821f2228d0d to your computer and use it in GitHub Desktop.
Zendesk: Hide default system fields on Zendesk Ticket Form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//hide system fields based on ticket forms(change subdomain and form id) | |
if (window.location.href == "https://yoursubdomain.zendesk.com/hc/en-us/requests/new?ticket_form_id=11111") { | |
$('.request_subject').hide(); | |
$('.request_description').hide(); | |
$('.form-field label:contains("Attachments")').hide(); | |
$('#upload-dropzone').hide(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I was looking into the answer above, and when you do the following, it only works for just one language:
$('.form-field label:contains("Attachments")').hide();
Could be a solution to hide the last form-field element, like this:
$('.form-field').last().hide();
This is going to hide the label and all the inputs inside of it, without adding language specifics to our code.