How to change the name of the "subject" field in the ticket forms? | Community
Skip to main content

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

  • November 14, 2019
  • 28 replies
  • 0 views

Show first post

28 replies

Brandon12
  • February 22, 2024

Hey Matt - 

Code like this usually goes at the end of your script.js file.  You will need to install jQuery in your document_head.hbs file first.  I've personally had more success with Option #2.  Let me know!


  • November 4, 2024

Hello,

 

 Anyone figured out for the CC Field? 

 


  • January 2, 2025
Hello,
 
Templates have access to various properties of your help center. For example, the New Request Page template has access to an object named new_request_form that has properties as per the form requested by the User. You can use dot notation to pluck information from the object. 
 
Example:
{{new_request_form.ticket_fields}}
 
Now, as the new_request_form object outlines > https://developer.zendesk.com/api-reference/help_center/help-center-templates/objects/#new-request-form-object
 
You can access its property > ticket_fields
ticket_fields array An array of ticket field objects containing all the standard and custom fields of the selected ticket form
 
You can see the array of Fields for this Form :
console.log(props.requestForm.ticket_fields)

 
Which will render the array of ticket fields for this Form selected :

 
And then if you want to know the level of subkeys/subprops for this Ticket Field Object, here it is > https://developer.zendesk.com/api-reference/help_center/help-center-templates/objects/#ticket-field-object
 
Then you can set the Field value as the property/attribute is accessible.
 
And thus something like :
props.requestForm.ticket_fields[0].value = "Description from Props"
As the index [0] from this Array is indeed my description field.
 
Would set the value, example (basic example use case) : 
 

 
Result:

 
You can tailor this process for CC field accordingly