Adding a hint / description below the Subject field on help center
Hello,
I am looking to add a 'hint' to my subject for one specific form. Can anyone tell me how to do this?
I have accomplished this for the description and attachment but cannot seem to find the correct syntax for the subject.
I have tried replacing Description with subject and that didn't work. Also if anyone could point me to where I could find the correct syntax for future reference that would be appreciated.
Below is how I accomplished this with the description.
// Description - Subtext
if(window.location.href.indexOf('XXXXXXXXXXXX') > -1){ // XXXXXXXXXXXX is the ticket id
$("#request_description_hint").html('This is the custom hint for the description');
}
Thanks in advance!
-
Where did you add this line of code exactly? I'd like to try it as well for a few of my custom forms, thanks
-
Hey William,
I have it added within the 'script.js' tab. -
Brandon Tidd solved this for me on another post if anyone runs into this issue.
"Try This
$(".request_subject").append('<p id="request_description_hint">This is the custom hint for the subject.</p>');"
サインインしてコメントを残してください。
3 コメント