Validating FreeText fields
Moderator: crythias
Validating FreeText fields
Is there any way to provide validation on custom freetext fields (e.g. with regex), or even to set them as mandatory/optional per ticket type?
OTRS 3.2.11 on Centos 6.4 with MySQL 5.0. Agents and internal customers authenticate via Active Directory.
Re: Validating FreeText fields
It is possible to set a free text field as mandatory, to do so, go to the SysConfig and search for "FreeText" and select the screen in which you want to have required free text fields and customize the correct options. For example:
Defining as required the free text field 1 in the close ticket screen:
Ticket::Frontend::AgentTicketClose###TicketFreeText
Key: 1 ---> Free text field number.
Content: 2 ---> Possible settings: 0 = Disabled, 1 = Enabled, 2 = Enabled and required.
However, you can't validate the input to that field.
Regards,
Elva
Defining as required the free text field 1 in the close ticket screen:
Ticket::Frontend::AgentTicketClose###TicketFreeText
Key: 1 ---> Free text field number.
Content: 2 ---> Possible settings: 0 = Disabled, 1 = Enabled, 2 = Enabled and required.
However, you can't validate the input to that field.
Regards,
Elva