issue attachment upload or delete in New ticket create page

Moderator: crythias

Locked
Gunjan
Znuny expert
Posts: 228
Joined: 09 Dec 2013, 06:37
Znuny Version: 3.3.x

issue attachment upload or delete in New ticket create page

Post by Gunjan »

Hi,

I am facing a new kind of issue. When I create a new ticket, there are some dynamic fields that are visible based on type. but when I upload an attachment or delete it, page reloads and the fields those should be visible had lost. How can it be resolved?

Thanks
Gunjan
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: issue attachment upload or delete in New ticket create p

Post by crythias »

Gunjan wrote:When I create a new ticket, there are some dynamic fields that are visible based on type. but when I upload an attachment or delete it, page reloads and the fields those should be visible had lost. How can it be resolved?
... DDT ... Or do the same thing for every field.
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
Gunjan
Znuny expert
Posts: 228
Joined: 09 Dec 2013, 06:37
Znuny Version: 3.3.x

Re: issue attachment upload or delete in New ticket create p

Post by Gunjan »

Sorry, I could not understand. what does DDT mean?? and what can I do for every field?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: issue attachment upload or delete in New ticket create p

Post by crythias »

DDT = Don't do that
Gunjan wrote:When I create a new ticket, there are some dynamic fields that are visible based on type.
Not by default. You made a change based upon type. you also need to run the script *anyway* at the end of the load page.
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
Gunjan
Znuny expert
Posts: 228
Joined: 09 Dec 2013, 06:37
Znuny Version: 3.3.x

Re: issue attachment upload or delete in New ticket create p

Post by Gunjan »

yes I understand this. I want to ask that where could I use my script. Could you tell me the location where I should use my script?
Gunjan
Znuny expert
Posts: 228
Joined: 09 Dec 2013, 06:37
Znuny Version: 3.3.x

Re: issue attachment upload or delete in New ticket create p

Post by Gunjan »

could anyone help me on this please?

Thanks in advance!
Gunjan
Znuny expert
Posts: 228
Joined: 09 Dec 2013, 06:37
Znuny Version: 3.3.x

Re: issue attachment upload or delete in New ticket create p

Post by Gunjan »

I have solved this.
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: issue attachment upload or delete in New ticket create p

Post by reneeb »

It would be great if you could post your solutions. It might help others with similar issues...
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
MargauxG
Znuny newbie
Posts: 68
Joined: 11 Apr 2014, 16:14
Znuny Version: 3.0.11
Real Name: Margaux Grandhomme
Company: Haulotte Group
Location: France

Re: issue attachment upload or delete in New ticket create p

Post by MargauxG »

Yes please post your solution, I'm facing kind of the same issue. When I upload an attachment, every dynamic fields appear whereas some should be hidden (you know, dynamic field based on service selection...)
OTRS 3.0.11 with ITSM, CMDB, FAQ...
Windows Server 2008 R2
Testing OTRS 3.2.16 and 3.3.1 on Ubuntu server with MSSQL
Gunjan
Znuny expert
Posts: 228
Joined: 09 Dec 2013, 06:37
Znuny Version: 3.3.x

Re: issue attachment upload or delete in New ticket create p

Post by Gunjan »

Hi,

I am really sorry but it has been a long time when I worked on this. I have forgotten what I did that time. As far as I remember, there was something related to window.onload function. When you upload/delete an attachment, it reloads the page. I have trying to find what I did, I would post here solution as soon as I would find that.

Regards,
Gunjan
Locked