Hiding attachment/system fields on ticket form | Community
Skip to main content

Hiding attachment/system fields on ticket form

  • February 29, 2016
  • 32 replies
  • 0 views

Show first post
This topic has been closed for replies.

32 replies

  • November 14, 2017

Anyone knows how to make a optional field required based on the selection of dropdown field?  Something like: 

if ($('.request_some_custom_fieldA').val() == "SW"){

$('.request_some_custom_fieldB').required() = true;

}

  • January 17, 2018

How do you get to the JS tab, I cant see it on the admin page


  • January 22, 2018

Hi Edward! Welcome to the Community!

You can access the code for your Help Center by going to your Guide Admin tools (upper right corner of the screen when you're in your Help Center). Click the eye icon in the sidebar that appears on the left side of your screen; this will take you to the Theming Center. Click on the theme you wish to edit, then click the button with the three dots at the top of the sidebar and click edit code. This will show you a list of any assets you've uploaded to your Help Center, as well as your HTML templates and you JS and CSS scrips. Scroll to the bottom and click on script.js.

Bear in mind that the ability to customize your Help Center code is only available if you're on Guide Professional. If you're on Guide Lite you won't be able to customize your theme.


  • April 3, 2018

An alternate nice approach is documented at this KB article.


Nicole17
  • April 4, 2018

Thanks for pointing that out, Mostafa. 


  • January 21, 2020

I am not a programmer, so I'd like to ask for some help in the community. I tried using the code snip that Kristin posted 3 years ago, but it is not working for me. I copied it below and adapted to one form only:

//Form Submit
$(document).submit(function() {
//set a string to equal the custom field value
var subjectstring1 = $("#request_custom_fields_360026456434").val();
//set subject to equal a string including field value string
$('#request_subject').val("Request Received From " + subjectstring1);
});
//End Form Submit

In the past few years, has the format changed? Can you see anything wrong with this code?


Devan
  • February 3, 2020

On Wednesday, February 5, from 10:00am-12:00pm CST, we'll have a special guest team of experts on hand to answer your questions about Support: Triggers and Email Workflows in your Zendesk Support instance for an AMA-style conversation!

Just click the "new post" button and write up your question. Be sure to be as detailed as possible. The best questions include: 

  • What it is you're trying to do
  • What you've tried so far 
  • Any other context or relevant information
  • Screenshots, if you have them

Questions posted to this topic in advance of the start time will be answered first thing on the 5th, so if you've got something you want our experts to look at, post it today!