How to Require Drop-Down Free Text Field With No Default Value

I have added a free text field in my tickets and made it mandatory (2). Values A, B, C, and D are allowed by the drop-down list. Currently, the ticket defaults to "A" and never prompts the agent to change the value (all of the types are equally common so there is not truly a "default") value. I want to force agents to examine this value before the ticket can be closed. How can I achieve this? I tried adding an additional entry like this at the top: $Self->{'TicketFreeText1'} = { '' => '-', However, OTRS accepted this '-' as a valid default value, which was not my intention. Thanks in advance for your suggestions, Hugh

Hi, On 08.08.2010, at 15:08, Hugh Kelley wrote:
I tried adding an additional entry like this at the top:
$Self->{'TicketFreeText1'} = { '' => '-',
However, OTRS accepted this '-' as a valid default value, which was not my intention.
This is exactly as it should work :-? E.g. TicketFreeField1 Text: Key: NULL Value: - Key: 1 Value: One Key: 2 Value: Two … If you define TicketFreeField1 as mandatory in the Phone-Ticket view (SysConfig->Ticket->Frontend::Agent::Ticket::ViewPhoneNew) it should not allow you save the form without having something selected that is not “-“. You might need to doublecheck the ViewPhoneNew configuration ... Freundliche Grüße / Kind regards Nils Leideck -- Nils Leideck Senior Consultant nils.leideck@leidex.net nils.leideck@otrs.com http://webint.cryptonode.de / a Fractal project
participants (2)
-
Hugh Kelley
-
Nils Leideck - ITSM