Simple Modification in Customer Frontend Ticket

Moderator: crythias

Locked
gotcha
Znuny newbie
Posts: 5
Joined: 08 Oct 2014, 12:13
Znuny Version: 3.1.20

Simple Modification in Customer Frontend Ticket

Post by gotcha »

Hi all,

I know that this subject is recurring.
My question is about the "NewTicket" page in the customer frontend.
I would like to have the customer automatically see the following text already in the message area when they compose a new ticket :

Code: Select all

application :
physical address :
Error message :
I found an Crythias answer : viewtopic.php?f=62&t=5157

Edit CustomerTicketMessage.dtl (Kernel/Output/HTML/Standard) Line 122 But you should likely do this in your own theme...
Original :

Code: Select all

<textarea id="RichText" name="Body" rows="15" cols="$Config{"Ticket::Frontend::TextAreaNote"}">$QData{"Body"}</textarea>
Modified :

Code: Select all

<textarea id="RichText" name="Body" rows="15" cols="$Config{"Ticket::Frontend::TextAreaNote"}">$QData{"Body"}Put Some Text Here<br>This is line2</textarea>
So i tried, the new text exist in textarea.
But it doesnt work, cause when Customers selecting TYPE / SLA / ... , new text (application, physical adress , error message) duplicates

Code: Select all

application :
physical address :
Error message
application :
physical address :
Error message
Need Help please :) ppl?

Thanks

Regards,

GoT
Last edited by crythias on 08 Oct 2014, 13:57, edited 1 time in total.
Reason: fix link
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Simple Modification in Customer Frontend Ticket

Post by crythias »

I really need to remove/adjust data from several years ago.

Consider whether you truly desire this as part of the body versus dynamic fields.
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Simple Modification in Customer Frontend Ticket

Post by crythias »

Also, this might be of interest.

Note that RichText is looking for RichText on the render of the website. If it's something else like CustomerEntry (or whatever) then make sure you account for that.
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
gotcha
Znuny newbie
Posts: 5
Joined: 08 Oct 2014, 12:13
Znuny Version: 3.1.20

Re: Simple Modification in Customer Frontend Ticket

Post by gotcha »

Crythias,

Thanks for your answer.

I really wish to have this information in body not in dynamic fields like link given.

info1
info2

I trying to have same body regardless dynamic choice (SLAID,Type,...)

per example i got 2 types (hardware / software), i must prepare body for these two choices?
Maybe exist a generic way for all choices of dynamic fields, that body does not change?

this duplicate is a headheck, im so weak :shock:
(i m looking your links, interesting but complicated

Regards,
gotcha
Znuny newbie
Posts: 5
Joined: 08 Oct 2014, 12:13
Znuny Version: 3.1.20

Re: Simple Modification in Customer Frontend Ticket

Post by gotcha »

FYI

i got just one Queue.
Customer dont select the Queue.
gotcha
Znuny newbie
Posts: 5
Joined: 08 Oct 2014, 12:13
Znuny Version: 3.1.20

Re: Simple Modification in Customer Frontend Ticket

Post by gotcha »

My configuration :
Ticket -> Frontend::Customer::Ticket::ViewNew

Ticket::Frontend::CustomerTicketMessage###Queue => NO
Ticket::Frontend::CustomerTicketMessage###QueueDefault => Service Support
Ticket::Frontend::CustomerTicketMessage###Service => YES
Ticket::Frontend::CustomerTicketMessage###SLA => NO

2 type : Hardware / Software
Service : depend of customer

origin :
http://hpics.li/fdb9e10

result :
http://hpics.li/97583f2

How to make a static body..
Note that after put an item in attchement, the body duplicates ...

I tried with your link but no result, i need to change the code for each field? with :

Code: Select all

CKEDITOR.instances.RichText.setData( '<p>This is Line1</p><p>This is Line2</p>' ); 
If customer begin to complete the body, after put the attachment the body will be reset..i turning around

a little help is needed :)

Regards,
gotcha
Znuny newbie
Posts: 5
Joined: 08 Oct 2014, 12:13
Znuny Version: 3.1.20

Re: Simple Modification in Customer Frontend Ticket

Post by gotcha »

I dont know why in AgentTicketPhone, i created an body in :

Ticket -> Frontend::Agent::Ticket::ViewPhoneNew
section :
Ticket::Frontend::AgentTicketPhone###Body


The body dont modify after put service / type / attchement ...

i Would like the same result in customer interface :x


Regards ,

Got
Locked