Editing 'Description shown to end users' for Description field per ticket form
AnsweredHello,
I would like to be able to change the 'Description shown to end users' for the mandated Description field per ticket form.
For instance, I would like Ticket Form 'X' to have the Description field read: "Please submit the details regarding 'X' here"
and for Ticket Form 'Y' to read: "Please enter all data pertaining to 'Y' in the above box"
I would like to accomplish this without creating a specific 'description' field for each form.
I have used the Guide Admin to auto populate and hide these fields (Subject & Description)on some forms before so I assume that this is possible.
Thank you in advance for any recommendations!
-
I have found this on how to change the title of the field.
But not the description like I am seeking.$('label[for=request_subject]').html("Custom Subject"); $('label[for=request_description]').html("Custom Description");
-
Hi Jonathan,
So you can check Ticket ID and change the description like:
$(document).ready(function (){
// Ticket X
if(window.location.href.indexOf('2999') > -1){ // 2999 is the ticket id which you would get from your window location (Searchbar)
$("#request_description_hint").html('Custom description for read');
}
// Ticket Y
if(window.location.href.indexOf('3999') > -1){ // 3999 is the ticket id which you would get from your window location (Searchbar)
$("#request_description_hint").html('Custom description for read');
}
})Reference from: https://stackoverflow.com/questions/43784700/javascript-using-if-statement-for-multiple-conditions-vs-switch-case
Team
-
Thank you so much !!!
-
Hello Ifra,
I would now like to edit my subjects hint field, I tried following the same convention as above and replacing 'description' with 'subject' but that did not work.
Do you know how to do this? -
Hi Jonathan,
Looks like this question is answered by one of our community moderators in this post: https://support.zendesk.com/hc/en-us/community/posts/360037440134-How-to-change-the-name-of-the-subject-field-in-the-ticket-forms-.
Best,
Michael Froeming | Senior Customer Advocacy Specialist
NEW - Zendesk offers free, on-demand training for all of our products. Set up your account and start learning today at training.zendesk.com
-
It took me a lot of time to figure out the right way to input a different description for the description field than the original one so I put it here. (can be useful for those that have several brands and want to put a different description for each brand. Has to be put in new_request_page
<script>
$("#request_description_hint").html (' <div class="hero-headline"> {{dc 'footer__cc-tel'}} </div>');</script>
Please sign in to leave a comment.
6 Comments