ANS-0493 · CUSTOM FIELDS, RECORDS & FORMS

How to Make Default Mandatory Fields Non-Mandatory in NetSuite

Learn how NetSuite administrators can adjust the mandatory status of system fields using scripting, workflows, or form customization.

Short answer

Default mandatory fields in NetSuite can be made non-mandatory through various methods. These include utilizing scripting with functions like `ignoreMandatoryFields`, configuring workflows to set field properties, or customizing forms to hide the field. While these options exist, it's crucial to review the business implications, especially for fundamental fields like the 'Item' field on sublists.

Scenario

NetSuite users often encounter situations where a system-defined mandatory field does not align with a specific business process. The challenge arises when attempting to make such a field optional, as standard customization options may not always suffice. This requires exploring advanced methods to override the default mandatory setting.

Solution

NetSuite provides several methods to make a default mandatory field non-mandatory:n

  1. Scripting

    Implement a client script or user event script. For instance, in a user event script, the ignoreMandatoryFields property can be set to true to bypass mandatory field validation during record submission.n

  2. Workflows

    Configure a workflow to set the field's display type to 'Optional' or 'Hidden' based on specific conditions. Workflows now offer functionality to make fields mandatory or optional, including for sublists.n

  3. Form Customization

    Hiding a mandatory field on a custom form can make it non-mandatory, effectively overriding system-level mandatory settings for that form.

    It is important to note that the 'Item' field is fundamental to sublists, particularly the 'Items' sublist. Any business process that seeks to bypass its usage should be carefully reviewed for potential implications on data integrity and system functionality.

Expert NetSuite Support

Need help with this NetSuite issue?

Custom Fields, Records & Forms consulting and configuration support

Talk to a consultant