Creating ticket by the customer

English! place to talk about development, programming and coding
Post Reply
nikolami
Znuny newbie
Posts: 9
Joined: 23 Mar 2016, 23:28
Znuny Version: OTRS5
Real Name: Nikola
Company: -

Creating ticket by the customer

Post by nikolami »

Hi all,
creating ticket I need to allow customer to fill out a Service field. Instead of fill out the Subject field, i need to copy value from Service field to Subject field.
Can anyone help with any ideas that would make this thing work?

Thanks a lot.
Nix
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: Creating ticket by the customer

Post by reneeb »

Add some javascript to the template that sets the Subject field when the Service field changes. Something like

Code: Select all

$('#ServiceID').bind( 'change', function() {
    $('#Subject').val( $(this).val() );
});
(untested)
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
nikolami
Znuny newbie
Posts: 9
Joined: 23 Mar 2016, 23:28
Znuny Version: OTRS5
Real Name: Nikola
Company: -

Re: Creating ticket by the customer

Post by nikolami »

Thank you reneeb.
I insert your code into CustomerTicketProcess.tt without result.
Can you help me please?

Thank you very much.
nikolami
Znuny newbie
Posts: 9
Joined: 23 Mar 2016, 23:28
Znuny Version: OTRS5
Real Name: Nikola
Company: -

Re: Creating ticket by the customer

Post by nikolami »

Any suggestion anyone, please?

Thanks in advance.
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: Creating ticket by the customer

Post by reneeb »

Add this to Kernel/Output/HTML/Templates/Standard/CustomerTicketMessage.tt

Code: Select all

[% WRAPPER JSOnDocumentComplete %]$('#ServiceID').bind( 'change', function() {
    $('#Subject').val( $(this).val() );
});
[% END %]
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
nikolami
Znuny newbie
Posts: 9
Joined: 23 Mar 2016, 23:28
Znuny Version: OTRS5
Real Name: Nikola
Company: -

Re: Creating ticket by the customer

Post by nikolami »

I was try but still nothing happened.
I detected a problem with the file CustomerTicketMessage.tt because process ticketing "customer.pl?Action=CustomerTicketProcess" form don't execute any code from CustomerTicketMessage.tt.
Do you have any suggestion for this problem, please?
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: Creating ticket by the customer

Post by reneeb »

Then try CustomerTicketProcess.tt
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
nikolami
Znuny newbie
Posts: 9
Joined: 23 Mar 2016, 23:28
Znuny Version: OTRS5
Real Name: Nikola
Company: -

Re: Creating ticket by the customer

Post by nikolami »

CustomerTicketProcess.tt provides HTML for CustomerTicketProcess.pm. and there is no place to insert javascript code.
Any suggestion, please.
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: Creating ticket by the customer

Post by reneeb »

Add the given piece of code at the end of the file...
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
nikolami
Znuny newbie
Posts: 9
Joined: 23 Mar 2016, 23:28
Znuny Version: OTRS5
Real Name: Nikola
Company: -

Re: Creating ticket by the customer

Post by nikolami »

Unfortunately still not working.
I create short video just to show what I do: https://youtu.be/LXlk7Y69i1Y
nikolami
Znuny newbie
Posts: 9
Joined: 23 Mar 2016, 23:28
Znuny Version: OTRS5
Real Name: Nikola
Company: -

Re: Creating ticket by the customer

Post by nikolami »

Does anyone have idea how to solve this problem, please?
nikolami
Znuny newbie
Posts: 9
Joined: 23 Mar 2016, 23:28
Znuny Version: OTRS5
Real Name: Nikola
Company: -

Re: Creating ticket by the customer

Post by nikolami »

I looking someone to resolve this for fixed price. Please send me your offer.

Regards,
DM
alexus
Znuny wizard
Posts: 380
Joined: 20 Sep 2010, 16:54
Znuny Version: OTRS 6 CE
Real Name: Alexey Yusov
Company: Radiant System Group s.r.o
Location: Prague
Contact:

Re: Creating ticket by the customer

Post by alexus »

Send us you request and contact data via contact form - http://www.radiantsystem.com
Alexey Yusov

Production: OTRS CE ITSM 6.0.28 on CentOS 7 + Apache 2.4 + MariaDB 10.4.13 + Radiant Customer Portal

Radiant System OTRS Intergrator
RS4OTRS marketplace
Stay tuned on our Facebook
((OTRS)) Community Edition - what next?
Post Reply