How work drop down lists?

Moderator: crythias

Locked
jgranados
Znuny newbie
Posts: 3
Joined: 15 Dec 2010, 14:56
Znuny Version: 2.4

How work drop down lists?

Post by jgranados »

Hi there, I´m trying to make custom drop down list using ticketfreetext property of the ticket, It works fine only by agreeding this option in config.pm like this:

Code: Select all

$Self->{'TicketFreeText1::DefaultSelection'} =  'Subtipo1';
	$Self->{'TicketFreeKey1::DefaultSelection'} =  'Subtipo1';
$Self->{'TicketFreeText1'} =  {
  'Subtipo1' => 'Subtipo1',
  'Subtipo2' => 'Subtipo2',
  'Subtipo3' => 'Subtipo3'
};
$Self->{'TicketFreeKey1'} =  {
  'Subtipo' => 'Subtipo'
};

	# ---------------------------------------------------- #
    # To change subtipo in AgentTicketDecision            #
    # ---------------------------------------------------- #
	
$Self->{'Ticket::Frontend::AgentTicketDecision'}->{'TicketFreeText'} =  {
  '1' => '1',
  '10' => '0',
  '11' => '0',
  '12' => '0',
  '13' => '0',
  '14' => '0',
  '15' => '0',
  '16' => '0',
  '2' => '0',
  '3' => '0',
  '4' => '0',
  '5' => '0',
  '6' => '0',
  '7' => '0',
  '8' => '0',
  '9' => '0'
};
I make it to categorize ticket in two level, the first is given by the ticket type, and the second is this free field, and I can change this ticketfreetext in the mentionated view AgentTicketDecision, but I don't want to see all options in this view, I only want to see some of them depending on the type choosen, I mean if I have a ticket type problem only see Subtipo1 and Subtipo2, and if I have a ticket type incident only see Subtipo3. Thanks in advance, any suggestion will be wellcome. P.D. Sorry for my English
Locked