Make a Dynamic Field read only after its value is entered once in another Activity Dialog

Moderator: crythias

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

Make a Dynamic Field read only after its value is entered once in another Activity Dialog

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: Make a Dynamic Field read only after its value is entered once in another Activity Dialog

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.
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Make a Dynamic Field read only after its value is entered once in another Activity Dialog

Post by crythias »

You should be able to do one of the following:
1) the interface where you drag the variables allows that the variables are read only.
2) you can use the transition action to assign the value to a dummy variable
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
charlyfarias
Znuny newbie
Posts: 5
Joined: 18 May 2016, 23:38
Znuny Version: 5.0.9
Real Name: Carlos Farias

Re: Make a Dynamic Field read only after its value is entered once in another Activity Dialog

Post by charlyfarias »

Hi!!!
Sorry to wake an old thread, but the audience get renewed...

1) the read-only permission for the action dialog works for agents with ro permissions on the queue and want to update the form. I think has nothing to do with read-only fields that is what we are looking for.
2) you can, but the dummy variable is still updateable.

I want to achieve an initial form, that get passed on the subsequents workflow steps, but just as a read-only reference.

You have any new ideas?

Thanks so much for your patience sharing your otrs knowledge.
OTRS 6.0.x (develop/production) on Linux with MySQL database.
root
Administrator
Posts: 3960
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Make a Dynamic Field read only after its value is entered once in another Activity Dialog

Post by root »

Hi,

Every ticket dynamic field is available in every step. As long as you don't show it again in an activity dialog it is read-only. And you can use it in transition actions and display it in the process dynamic field widget.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply