['js']['required'] option to
Example 4-12. Required fields
$opts['fdd']['col_name']['js']['required'] = true; $opts['fdd']['col_name']['js']['required'] = false;
Regular expressions are written in Perl compatible style. The expression above allows the form to submit only when numeric characters
0-9 are entered in the field. An empty value is also allowed, but you can use
['js']['regexp'] in combination with
['js']['required'] to prevent empty entries.
['js']['required'] option is used and the value entered is empty, or the characters entered do not match the defined
['js']['regexp'], a warning with the default message is displayed. This message can be changed using
['js']['hint']. This is especially useful for advising the user about field-specific data input restrictions.
Bootstrap phpMyEdit PHP Form Generator