Is there a way to make the Subject field a drop down menu? For continuity purposes, we would like to implement a set list of Subjects. I’m relatively new to RT so a point in the direction of relevant resources (if available) would be great! Thanks all in advance.
I think the best way to handle this would be through JavaScript, you can create a file local/static/js/AnyName.js
then in your RT_SiteConfig.pm add the following config option:
Set( @JSFiles, ('AnyName.js') );
Then the content of the file can be something along the lines of this:
jQuery(function(){
if ( window.location.href.indexOf('Ticket/Create.html') >= 1 ) {
jQuery('input[name=Subject]').replaceWith(`
<select name="Subject">
<option>
Some Option
</option>
</select>
`)
}
})
Where you can just replace the existing text input with whatever HTML input you’d like.
1 Like