Where to put Custom Javascript Code for Activity Dialogs !

Moderator: crythias

Locked
Purvi
Znuny newbie
Posts: 9
Joined: 28 Jun 2016, 19:01
Znuny Version: 5.0.10

Where to put Custom Javascript Code for Activity Dialogs !

Post by Purvi »

I have 2 Activity Dialogs present for my ticket.
My requirement is to add some custom javascript code for one of the Activity Dialogs.

I tested my code. It works fine.
But I don't know where to put it.

The url that is generate when I click on my Activity Dialog is this one :

http://192.168.1.152/otrs/index.pl?Acti ... 119babe7dc

I get from here the Action is AgentTicketProcess. So I was putting my javascript in Core.Agent.TicketProcess.js
But the code gets execute only when I create a new process.
I want the code to get executed after my ticket is created and when I go to the desired Activity Dialog.

Please help !
I am so close.

** Attched is the screenshot of my Ticket with 2 Activity Dialogs. I want to add my code to the Show Emp Info AD.
You do not have the required permissions to view the files attached to this post.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Where to put Custom Javascript Code for Activity Dialogs !

Post by crythias »

You may need to put it in the .tt referenced for the ActivityDialog itself.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked