I want to customize the AgentTicketFreeText form contents/appearence with variations being based on the current ticket queue.
I have a custom AgentTicketActionCommon.tt (in /opt/otrs/Custom/Kernel/Output/HTML/Templates/Standard/AgentTicketActionCommon.tt) and I know I can add something like:
Code: Select all
[% WRAPPER JSOnDocumentComplete %]
<script type="text/javascript">
function changethings() {
[...this javascript code changes things...]
}
changethings();
</script>
How can I capture the queue name or ID in my javascript function to use it as I want for implementing conditional stuff?
Thanks!