The required() function returns a value indicating whether all the fields in the specified form or window that have the Required property set to true have data in them. If any of the required fields are blank, the return value will be false.
required([form | window] name)
• form|window – The type of resource you’re checking.
• name – The name of the form or window you’re checking.
A common use of this function is to ensure that all necessary information has been entered in a window when a user attempts to save a record.
Fields currently locked, hidden or disabled aren’t checked by the required() function, even if they’ve been marked as required, since fields that are locked, hidden or disabled can’t be changed by a user.