Validating FreeText fields

Moderator: crythias

Post Reply
Mothra
Znuny expert
Posts: 189
Joined: 26 Oct 2010, 15:04
Znuny Version: 3.2.11

Validating FreeText fields

Post by Mothra »

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.
elvanov
Znuny newbie
Posts: 32
Joined: 12 Jun 2010, 00:42
Znuny Version: 2.4.7

Re: Validating FreeText fields

Post by elvanov »

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
Post Reply