How to change the name of the "subject" field in the ticket forms?

Answered

9 Comments

  • Simon Celen
    Community Moderator

    Hi Marci,

    You should be able to change the Subject field label in the Admin > Manage > Ticket Fields:

     

    Find the Subject field and Edit it:

     

    Then change the "Title shown to end users" field:

    That should do it.

    1
  • Marci Abraham

    O....M....G...... This is nuts! Yes, that worked. Hah! 

    But what the heck....I have read and been told repeatedly -- even by Zendesk support staff -- that this is a system field that cannot be altered. 

    Well...problem solved!! Thank you.

    1
  • Devan - Community Manager
    Zendesk Community Team

    Hey Marci Abraham,

    Our mods are pretty incredible like that, and Simon Celen is no exception! Glad you were able to find a solution in the Community, and thanks for posting such a well thought out question for other users to learn from!

    0
  • Louis Evangelista

    Hi Devan,

     

    How can you make "Title shown to end users" appear different on other forms? i.e.

    Form 1: Subject = Topic of your request

    Form 2: Subject = Issue

    Form 3: Subject = Short Summary

    Thanks,

    Louis

    0
  • Simon Blouner
    Community Moderator

    Hey Louis Evangelista

    Where are you presenting your forms to your end-users? On your Help Center or the Web Widget? Or both?

    On the Help Center you're able to change this text with a little bit of coding.

    $( document ).ready(function() {
    //Store the ticket form ID
    const ticketForm = location.search.split("ticket_form_id=")[1];

    //Create if statement for each of your forms
    if (ticketForm == FORM_ID_HERE) {

    //Change the subject label text
    $(".request_subject #request_subject_label").text("Add your desired Subject text for the specific form here");

    }
    });

    If you're using Copenhagen Theme with the v2 framework, you need to add a reference for jQuery in the document_head.hbs template in order for the above snippet to work.

    I don't believe it's possible to change the Subject label in the Web Widget though.

    1
  • Louis Evangelista

    This worked for me! Thank you for sharing!

    0
  • Grant Foster

    Simon Blouner Is it possible to also do this for the "Attachments (optional)" field?

    0
  • Simon Blouner
    Community Moderator

    Hey @Grant Foster

    You sure can!

    It's all about locating where to change the text in the DOM.

    For the "Attachments (optional)" the code would look like this:

    $( document ).ready(function() {
    //Store the ticket form ID
    const ticketForm = location.search.split("ticket_form_id=")[1];

    //Create if statement for each of your forms
    if (ticketForm == FORM_ID_HERE) {

    //Change Upload Label
    $("#upload-dropzone").prev("label").text("Add something here")
    }
    });

    You can leave out the if check for formid if this is not relevant for you :-)

     

    1
  • Grant Foster

    Awesome that works perfectly, thanks Simon. Was just the upload-dropzone stuff I was missing.

     

    Just for future reference if someone stumbles on this using the code above, you can substitute out the last line for //Change Upload Label with the below to change the subject, description or attachment label/titles

    //Change the subject label text
    $(".request_subject #request_subject_label").text("Add your desired Subject text for the specific form here")
    //Change the description label text
    $(".request_description #request_description_label").text("Add your desired Description text for the specific form here")
    //Change the attachment label text
      $("#upload-dropzone").prev("label").text("Add your desired Attachment text for the specific form here")
    0

Please sign in to leave a comment.

Powered by Zendesk