Hello
I'm new to OTRS and i've searched the forum for what I need to do and couldn't find it.
What I'm trying to do is create 2 dropdown fields in the "Create NewPhone Ticket". I want it to be before the Text field and to be like:
the first dropdown field name - Purchase Channel with the dropdown values:
eCommerce OS
Other eCommerce
Local retail
second dropdown field name - Country with the dropdown values:
DE
ES
IT
FR
UK
ROW
I would very much appreciate anyone's help
Thanks in advance
drop down list
Moderator: crythias
-
- Znuny superhero
- Posts: 630
- Joined: 17 Mar 2011, 14:40
- Znuny Version: 5.0.6
- Real Name: Yuri Kolesnikov
- Location: Russia
Re: drop down list
You need to create two dynamic fields, type - dropdown. After it you need to activate them in SysConfig in SysConfig in Ticket -> Frontend::Customer::Ticket::ViewNew - Ticket::Frontend::CustomerTicketMessage###DynamicField.
This placed this new fields bottom of create ticket form.
If you want to place them before Ticket Body, you need to edit CustomerTicketMessage.dtl file.
Usually, the dynamic fields are displayed by a single operator. In the text of this module you can find commented piece of code, that describe how to display the dynamic fields one after another in your own sequence. Read this example and do what do you want in needed place.
This placed this new fields bottom of create ticket form.
If you want to place them before Ticket Body, you need to edit CustomerTicketMessage.dtl file.
Usually, the dynamic fields are displayed by a single operator. In the text of this module you can find commented piece of code, that describe how to display the dynamic fields one after another in your own sequence. Read this example and do what do you want in needed place.

Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
-
- Znuny newbie
- Posts: 17
- Joined: 02 Oct 2012, 11:10
- Znuny Version: 3.1.9
- Real Name: Pompiliu Aranyos
- Company: Bosch Communication Center
Re: drop down list
Thanks for the quick replayyuri0001 wrote:You need to create two dynamic fields, type - dropdown. After it you need to activate them in SysConfig in SysConfig in Ticket -> Frontend::Customer::Ticket::ViewNew - Ticket::Frontend::CustomerTicketMessage###DynamicField.
This placed this new fields bottom of create ticket form.
If you want to place them before Ticket Body, you need to edit CustomerTicketMessage.dtl file.
Usually, the dynamic fields are displayed by a single operator. In the text of this module you can find commented piece of code, that describe how to display the dynamic fields one after another in your own sequence. Read this example and do what do you want in needed place.
The thing is, I made the dropdown fields but I don't exactly know what to put in "possible values - key" when you create the field and also when you need to activate it what values do I need to write there (see ex) And maybe that's why I can't see the dropdown field in when I'm trying to create a NewPhoneTicket
You do not have the required permissions to view the files attached to this post.
-
- Znuny superhero
- Posts: 630
- Joined: 17 Mar 2011, 14:40
- Znuny Version: 5.0.6
- Real Name: Yuri Kolesnikov
- Location: Russia
Re: drop down list
On first screenshot - Key - any name.
On second - Key - Dynamic field NAME, Content - 0(not display),1(display),2(display, mandatory to fill)
On second - Key - Dynamic field NAME, Content - 0(not display),1(display),2(display, mandatory to fill)
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
-
- Znuny newbie
- Posts: 17
- Joined: 02 Oct 2012, 11:10
- Znuny Version: 3.1.9
- Real Name: Pompiliu Aranyos
- Company: Bosch Communication Center
Re: drop down list
Thank you very much for the help, it works nowyuri0001 wrote:On first screenshot - Key - any name.
On second - Key - Dynamic field NAME, Content - 0(not display),1(display),2(display, mandatory to fill)
Re: drop down list
Thank you for the details. I read through parts of the OTRS Admin 3.1 Manual section about Dynamic Fields and missed the part stating to update the Config Settings in Ticket -> Frontend::Customer::Ticket::ViewXXX.
Your post was helpful.
Your post was helpful.
Test:: OTRS 5.0.10 w/MariaDB 5.5.47 backend on RHEL7
Prod:: OTRS 5.0.10 w/MariaDB 5.5.47 backend on RHEL7
Prod:: OTRS 5.0.10 w/MariaDB 5.5.47 backend on RHEL7