The Required property specifies whether the field must contain data before the user can save information in the window.
field.Required [= boolean]
• field – A window field object.
• boolean – If True, the field is required. If False, the field is not required.
Microsoft Dynamics GP will prompt the user to enter data in a required field if the field is empty when the user attempts to save the record. Fields marked as required by VBA are displayed with the same caption, font style and color as fields marked as required by the accounting system.
You cannot set the Required property to False for fields already marked as required by the accounting system. These are fields necessary for the system to store the record properly.
If you make a field required, be sure the field is enabled (its Enabled property is True) and unlocked (its Locked property is False).