How to make Dynamic Fields Read Only

English! place to talk about development, programming and coding
Post Reply
Purvi
Znuny newbie
Posts: 9
Joined: 28 Jun 2016, 19:01
Znuny Version: 5.0.10

How to make Dynamic Fields Read Only

Post by Purvi »

Hello All,

I am new to OTRS so please bear with me.
The scenario I have is as follows.

I created a text Dynamic Field in AD1. The same Dynamic Field is used in AD2.
Now if I have entered a value for DF in AD1, it is shown in AD2 but I want to make it Read Only in AD2.
I rendered the source page and made the DF on that page as readonly.
It works.
Now I want to know how can I replicate this in the config.
I have no idea where are the files stored where we can edit javascript in OTRS !

Please help.
Any other solution is also welcomed .
Purvi
Znuny newbie
Posts: 9
Joined: 28 Jun 2016, 19:01
Znuny Version: 5.0.10

Re: How to make Dynamic Fields Read Only

Post by Purvi »

Purvi wrote:Hello All,

I am new to OTRS so please bear with me.
The scenario I have is as follows.

I created a text Dynamic Field in AD1. The same Dynamic Field is used in AD2.
Now if I have entered a value for DF in AD1, it is shown in AD2 but I want to make it Read Only in AD2.
I rendered the source page and made the DF on that page as readonly.
It works.
Now I want to know how can I replicate this in the config.
I have no idea where are the files stored where we can edit javascript in OTRS !

Please help.
Any other solution is also welcomed .
Update:
So I have made some progress. I was able to find the js file where the ticket is processed.
The js file is AgentTicketProcess.
Now, let suppose my process has 2 Activity Dialogs.
I need to figure out a way that when the user clicks the 2nd Activity Dialog, the Dynamic Field should be Made Read Only.
Post Reply