WODA: FAQs

 Data Management

How can you make data fields "required" so that a record addition will not happen unless a field is filled out... regardless of the input?
You can make a field "required" by changing one field setting.
See below an example.

$x='Description'; # ------------------------------
$WBF{$x,srt}=$i--;
$WBF{$x} = '/^.+/'; ### HERE is where you make the field mandatory using
Perl regular expressions.
$WBF{$x,'type'} = 'INPUT';
$WBF{$x,'head'} = 'Description';
$WBF{$x,'help'} = 'Enter the description (Mandatory).';

Good luck,
Jean-Paul
modify the informationdelete entire recordexplain the meaning of the fieldsbrowse recordsAdd a new questionHome page of this databaselogin Valid HTML 4.01 Transitional Valid CSS! Powered by WODA 4.6x trunk