Subject mandatory without using extension


#1

Hi guys

I want to make the subject field mandatory when user want to create new ticket. I’ve searched this forum and find lots of posts related to this question and all of them says I should use RT-Extension-MandatorySubject, but the thing is because of some reasons I don’t want to use any extensions. I want to modify the code directly and I don’t know where and how i should do it.
I will appreciate any solution.

thanks in advance


#2

Hi

Not sure why you wouldn’t want to use the extension, but you could look at the required attribute. https://www.w3schools.com/tags/att_input_required.asp

Regards

Garry