[Solved] New field for customer

Moderator: crythias

Locked
contradl
Znuny newbie
Posts: 18
Joined: 16 Sep 2015, 11:32
Znuny Version: 5.0.x

[Solved] New field for customer

Post by contradl »

How to add new field that will pop up when customer is about to create new ticket?
Last edited by contradl on 05 Oct 2015, 12:04, edited 1 time in total.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: New field for customer

Post by RStraub »

That would be a dynamic field ?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: New field for customer

Post by crythias »

Or.. You want precognition? Clippy: you look like you're about to create a ticket. Fill this 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
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: New field for customer

Post by RStraub »

crythias wrote:Or.. You want precognition? Clippy: you look like you're about to create a ticket. Fill this field.
That made me giggle :)
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
contradl
Znuny newbie
Posts: 18
Joined: 16 Sep 2015, 11:32
Znuny Version: 5.0.x

Re: New field for customer

Post by contradl »

I want to add a calendar field where user could add date when he needs ticket to be answered. This date could help our agents to know how much time they have to finish working on something.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: New field for customer

Post by RStraub »

That *should* be done with SLAs - if you have any.

Anyhow, answer is probably still creating a dynamic field and adding it to sysconfig -> ticket -> Frontend::Customer::Ticket::ViewNew
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
contradl
Znuny newbie
Posts: 18
Joined: 16 Sep 2015, 11:32
Znuny Version: 5.0.x

Re: New field for customer

Post by contradl »

Yeah, but sometimes things change during that period. If we are working on a project and are experiencing problems with execution, then we change the end date. This depends from projects that are in the same service, so I need that field so that our agents can see how much time they have.
contradl
Znuny newbie
Posts: 18
Joined: 16 Sep 2015, 11:32
Znuny Version: 5.0.x

Re: New field for customer

Post by contradl »

Now I added field as shown in this pic Image.

Is there a way I move this field on the top of ticket?
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: New field for customer

Post by RStraub »

Only if you hardcode it in the template.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
contradl
Znuny newbie
Posts: 18
Joined: 16 Sep 2015, 11:32
Znuny Version: 5.0.x

Re: New field for customer

Post by contradl »

Do you know which file is for this template? (New ticket creation)
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: New field for customer

Post by RStraub »

The File is ~otrs/Kernel/Output/HTML/Standard/CustomerTicketMessage.tt
The block you want starts here:
https://github.com/OTRS/otrs/blob/rel-4 ... ge.tt#L195

Copy the whole block (including render block start and render block end) to the place you want it.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
contradl
Znuny newbie
Posts: 18
Joined: 16 Sep 2015, 11:32
Znuny Version: 5.0.x

Re: New field for customer

Post by contradl »

It works. Thx
Locked