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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Set Required Mandatory Fields in Transactions in Business Central

(4) ShareShare
ReportReport
Posted on by 3,960

What is the best way to configure certain fields as mandatory in transaction pages such as Sales Order, Sales Invoice, and Purchase Order? The fields must have a value in order to Post. The Posting Preview should also display appropriate error messages.

For example: I want to make “Contact” mandatory. There are also other customized fields from multiple extensions that need to be set as mandatory.

Is there already an App or built‑in feature that can achieve this without having to do additional AL coding? If AL coding is necessary, can you give basic steps and methods?
Thank you.

I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    6,754 on at
    Hello 
     
    There is no built-in feature or Microsoft app in Business Central to make arbitrary fields mandatory at posting time (including Posting Preview). Page-level tricks don’t work reliably. The only correct and supported way is AL: subscribe to posting events (Sales-Post / Purch.-Post), validate required standard or custom fields (even from other extensions), and raise an Error if a value is missing. This automatically blocks Post and Posting Preview and works for all entry points. Best practice is to centralize the checks in one validation codeunit, optionally driven by a setup table to avoid hardcoding.
     
    Regards,
    Oussama Sabbouh
  • Suggested answer
    YUN ZHU Profile Picture
    95,937 Super User 2025 Season 2 on at
    Hi, Unfortunately, as of now, customization is the only option.
    Hope the following helps
    Dynamics 365 Business Central: How to make a field mandatory
    Dynamics 365 Business Central: The red asterisk next to a field (mandatory field???)
     
    Thanks.
    ZHU

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,688

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 784 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 595 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans