Mandatory filed

Discussion in 'General' started by valerios, Nov 11, 2013.

  1. valerios

    valerios New Member

    Hi all,
    during mailbox creation can I make realname a mandatory field?

    Thank :)
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    You have to change the ISPConfig code.
    There is a file interface/web/mail/form/mail_user.tform.php
    Search for the field "name" (below "password").
    Add a new validator entry to the array:
    'validators' => array (
    0 => array ( 'type' => 'REGEX',
    'regex' => '/^.{5,}$/',
    'errmsg'=> 'name_error_needed'),
    (the 5 is the minimum length of the name).

    Then you have to add a language entry "name_error_needed" to the

Share This Page