Auto populate in subject based on Resposible selection

Moderator: crythias

Locked
mcg
Znuny newbie
Posts: 1
Joined: 08 Oct 2013, 09:50
Znuny Version: 3.2.8
Real Name: John
Company: UKS

Auto populate in subject based on Resposible selection

Post by mcg »

Hi,

Can i know how to customize in new phone ticket. I would like to make auto populate subject when the responsible is choose.

Thanks.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Auto populate in subject based on Resposible selection

Post by reneeb »

I would create a JavaScript file (in <OTRS_HOME>/var/httpd/htdocs/js) and add that .js file to the loader (SysConfig -> Ticket -> Frontend::Agent::ModuleRegistration -> Frontend::Module::AgentTicketPhone).

In that .js file I would add a event lister to the responsible dropdown (listening to the "change" event) and set the value in "subject". To do that you should read the jQuery documentation.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Locked