add Checked Box in Config Item

Moderator: crythias

Locked
eyucks
Znuny newbie
Posts: 31
Joined: 11 Jul 2012, 05:17
Znuny Version: 3.3.6
Real Name: Ashraf

add Checked Box in Config Item

Post by eyucks »

Hi all,

I'm sorry because i'm newbie here. I just created COnfig Item with General Catalogs but Its only vie DropDown Menu.
Can OTRS using General Catalog but using Checked Box ?

I'm Running OTRS 3.3.6

Thanks

-Ashraf
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: add Checked Box in Config Item

Post by RStraub »

There is a checkbox defined in the general catalog, try the class "ITSM::ConfigItem::YesNo".

E.g.:

Code: Select all

  { 
           Key => 'examplecheckbox', 
           Name => 'Example of a checkbox field', 
           Input => { 
              Type => 'GeneralCatalog', 
              Class => 'ITSM::ConfigItem::YesNo', 
              Translation => 1, 
           }, 
        }, 
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
eyucks
Znuny newbie
Posts: 31
Joined: 11 Jul 2012, 05:17
Znuny Version: 3.3.6
Real Name: Ashraf

Re: add Checked Box in Config Item

Post by eyucks »

RStraub wrote:There is a checkbox defined in the general catalog, try the class "ITSM::ConfigItem::YesNo".

E.g.:

Code: Select all

  { 
           Key => 'examplecheckbox', 
           Name => 'Example of a checkbox field', 
           Input => { 
              Type => 'GeneralCatalog', 
              Class => 'ITSM::ConfigItem::YesNo', 
              Translation => 1, 
           }, 
        }, 

That is Drop Down Menu not a checked box menu. If we dont have Checked Box, does OTRS able to use Multiple Selection menu instead of using Checked Box menu?

Hope some one can help :(

-Ashraf
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: add Checked Box in Config Item

Post by RStraub »

Oh I'm sorry.

What you can try is the package from the CapeIT group, that will provide you with the ability to define DynamicField-References in a CI-definition. And you're able to create multiselect dynamic fields (though I didn't test it).
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
eyucks
Znuny newbie
Posts: 31
Joined: 11 Jul 2012, 05:17
Znuny Version: 3.3.6
Real Name: Ashraf

Re: add Checked Box in Config Item

Post by eyucks »

RStraub wrote:Oh I'm sorry.

What you can try is the package from the CapeIT group, that will provide you with the ability to define DynamicField-References in a CI-definition. And you're able to create multiselect dynamic fields (though I didn't test it).
Hmm.. no default field for checked box or multiple selection field in COnfig Item.
Anyway thank you for your suggestion.
Locked