How to change the field type in OTRS?

English! place to talk about development, programming and coding
Post Reply
kudumulanarender
Znuny newbie
Posts: 7
Joined: 05 Feb 2013, 15:03
Znuny Version: 3.2.1
Real Name: Narender Reddy
Company: TAS

How to change the field type in OTRS?

Post by kudumulanarender »

Hi Everybody,
i want to change the field type in otrs how to do that? (for example i want to change the "SLA" field type from dropdown to label )
joecopty
Znuny newbie
Posts: 22
Joined: 11 Jan 2013, 01:42
Znuny Version: 3.2.6
Real Name: Joseph Copty
Company: TMC

Re: How to change the field type in OTRS?

Post by joecopty »

One way without tinkering with the dtl files is to create a dynamic field with what ever type you want.
supported types are : checkbox, date, datetime, dropdown, multiselect, text or textarea.
However you will need to add this dynamic field to any view/module you want to see it in. e.g Frontend::Agent::Ticket::ViewPhoneNew for a new phone ticket page.
hope this helps.
Also if you do end up changing the dtl file make sure you do it in a theme see: http://doc.otrs.org/3.2/en/html/themes.html
Good luck
Sydney, Australia
OTRS 3.3.6 on Windows Server 2003, IIS6 with MSSQL database
kudumulanarender
Znuny newbie
Posts: 7
Joined: 05 Feb 2013, 15:03
Znuny Version: 3.2.1
Real Name: Narender Reddy
Company: TAS

Re: How to change the field type in OTRS?

Post by kudumulanarender »

hey thanks for reply, i'll create the dynamic field like u said and i want to display the SLA in that dynamic field how to do that?
joecopty
Znuny newbie
Posts: 22
Joined: 11 Jan 2013, 01:42
Znuny Version: 3.2.6
Real Name: Joseph Copty
Company: TMC

Re: How to change the field type in OTRS?

Post by joecopty »

Can you please explain in more detail what you are trying to do? Why do u need SLAs to be a label? by label do u mean a text field?
You can add dynamic fields by following these instructions
Note however that dynamic fields will not be related to the service and SLAs that you configure in OTRS
Cheers,
Joe
Sydney, Australia
OTRS 3.3.6 on Windows Server 2003, IIS6 with MSSQL database
Post Reply