web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Make Fields Mandatory

(0) ShareShare
ReportReport
Posted on by 194

I apologize if this questions has been asked and answered but I was unable to find it.

I will like to make certain fields mandatory to fill in forms. e.g. "Customer Type" or "State/Prov" in the Customer card must have a value otherwisethe form errors.

*This post is locked for comments

I have the same question (0)
  • Daniele Rebussi Profile Picture
    2,480 on at

    Please open the table from object designer and set NotBlank property to Yes of the fields you consider mandatory.

  • AQureshi Profile Picture
    194 on at

    I guess I need a Dev license for that since I don't see the "NotBlank" property anywhere?

     

  • BobB Profile Picture
    100 on at

    The NotBlank property is only used for fields in the primary key, and then only when they are validated through the UI. It shouldn't be used on fields that aren't part of the primary key.

  • Verified answer
    BobB Profile Picture
    100 on at

    The only way to do this is to put code in the OnModify trigger of the table to check that the fields in question have values. Even then, that solution could have unintended consequences.

  • Community Member Profile Picture
    on at
    User on Insert
    TESTFIELD(Mandatoryfield);

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans