Changing order of fields on Phone Ticket form

Moderator: crythias

Post Reply
Gunz
Znuny newbie
Posts: 44
Joined: 30 Jun 2010, 01:43
Znuny Version: 2.4

Changing order of fields on Phone Ticket form

Post by Gunz »

Hi, I'm running the Windows version: 2.4.7.

I want to change the display order of the fields on the Phone Ticket form: for example I want to move the "CustomerID" field up under the "From" field. Basically I want to make the form easier to fill out for our Customer Service Reps when they take a call.

I've got all the fields I need... I just want to move them around on the form.

I believe the DTL involved here is AgentTicketPhone.dtl

I've looked at Theme's and creating new themes but to be honest the documentation I've seen does not readily make any sense to me.

The Theme documentation talks about modifying the DTL file (which I can do) and then inserting it into the SQL Database. Here I have no clue... I don't even know how to get into the database (again I am running Windows) and if I did, I wouldn't know the syntax to use to do this insertion.

The bit in the documentation about Themes had some SQL syntax however it made no sense to me at all...

Is there an easy way to achieve what I need to do?

I am pretty stumped at this point. Any help would be appreciated! Please assume I know little to commence with... Wayne
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Changing order of fields on Phone Ticket form

Post by crythias »

http://doc.otrs.org/2.4/en/html/c2079.html
  1. Create a directory for your new theme
    mkdir c:\otrs\Kernel\Output\HTML\yourThemeName
  2. Customize the files
    Copy only the files you want to change (AgentTicketPhone.dtl) to the new directory/folder
  3. Add the theme name to the database
    Get your login, password, and otrs database name from otrs\Kernel\Config.pm
    from the command line:
    mysql -u login -p otrsdatabasename
    at the mysql> prompt put this entire line

    Code: Select all

    INSERT INTO theme (theme, valid_id, create_time, create_by, change_time, change_by)  VALUES  ('yourThemeName', 1, current_timestamp, 1, current_timestamp, 1);
    
    type exit to exit mysql prompt

Once that is accomplished, the theme is available from the preferences drop down list per user. If it's not selected, changes won't happen.
-=-=-=-=-=-=-
To change the order of displayed items, simply change the order of the entries in the .dtl file.

Code: Select all

                    <tr>
                        <td class="contentkey">$Text{"CustomerID"}:</td>
                        <td class="contentvalue"> <input type="text" name="CustomerID" value="$QData{"CustomerID"}" size="25"/></td>
                    </tr>
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
Gunz
Znuny newbie
Posts: 44
Joined: 30 Jun 2010, 01:43
Znuny Version: 2.4

Re: Changing order of fields on Phone Ticket form

Post by Gunz »

This has been very helpful. I think I've got it now... Thanks for all your assistance!
srivatsatatti
Znuny newbie
Posts: 85
Joined: 25 Jan 2011, 06:54
Znuny Version: OTRS 3
Company: eStomi Technologies Pvt Ltd
Contact:

Re: Changing order of fields on Phone Ticket form

Post by srivatsatatti »

I tried to modify the phone ticket, but in My database there is no table named theme. :(
do i need to create a new table?
OTRS 3.2.x, Linux Ubuntu, Mysql 5.1.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Changing order of fields on Phone Ticket form

Post by jojo »

in 3.0 no table for themes is needed. Did you read the admin book?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
srivatsatatti
Znuny newbie
Posts: 85
Joined: 25 Jan 2011, 06:54
Znuny Version: OTRS 3
Company: eStomi Technologies Pvt Ltd
Contact:

Re: Changing order of fields on Phone Ticket form

Post by srivatsatatti »

i didn't notice it.. Thanks for reply
OTRS 3.2.x, Linux Ubuntu, Mysql 5.1.
eterjack
Znuny newbie
Posts: 55
Joined: 21 Sep 2012, 01:45
Znuny Version: 3.1.10

Re: Changing order of fields on Phone Ticket form

Post by eterjack »

This work with dynamicfield ?
crythias
Moderator
Posts: 10169
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Changing order of fields on Phone Ticket form

Post by crythias »

eterjack wrote:This work with dynamicfield ?
This is an old thread. Yes, you can statically position DynamicFields if they're enabled in SysConfig.
Or you can use the DynamicField's index numbers for positioning.
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
eterjack
Znuny newbie
Posts: 55
Joined: 21 Sep 2012, 01:45
Znuny Version: 3.1.10

Re: Changing order of fields on Phone Ticket form

Post by eterjack »

Thx, for replay.

Index order work only for dynamic ? I want position my dynamic field, before selection service.

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

Re: Changing order of fields on Phone Ticket form

Post by crythias »

Yes. look for comments in the appropriate .dtl file.
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
Post Reply