Language Reference Guide : System Classes : EntryField Class : IsMandatory Attribute
 
Share this page          
IsMandatory Attribute
Data Type: smallint Attribute
4GL Access: RW
The IsMandatory attribute indicates whether the field is mandatory.
Valid values are:
TRUE
Specifies that the field will not accept null data or allow the user to leave the field empty
FALSE
Specifies that the field can accept null data or be left empty
Users can save changes to a form containing empty mandatory fields if they never enter the mandatory fields. To prevent users from saving nonexistent data in a mandatory field, use this attribute in conjunction with the CheckFailedMandatory Method.