Notifications
Announcements
No record found.
Dear Dynamics Community,
I am currently attempting to use the page property ShowMandatory = true to mark an enum field as required on a page. While this property functions correctly for fields of type Code, it does not appear to have any effect when applied to enum fields.
ShowMandatory = true
Code
Is there a known limitation regarding the use of ShowMandatory with enum field types? If so, I would greatly appreciate any suggestions or workarounds to achieve similar functionality for enum fields.
ShowMandatory
Thank you in advance for your support and guidance.
It can work like this: most enum fields aren’t blank by default, so to use ShowMandatory include a blank option. Set both ShowMandatory and BlankZero on the field.
BlankZero
Valentin Castravet Work: Zander ERP Services Blog: Dynamics 365 Business Central Insights LinkedIn: www.linkedin.com/in/valentin-c-0500a247/
enum 50010 Test { Extensible = true; value(0; "") { } value(1; Test01) { } value(2; Test02) { } value(3; Test03) { } }
field("Test Enum"; Rec."Test Enum") { ShowMandatory = true; BlankZero = true; }
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 3,175
Jainam M. Kothari 2,476 Super User 2025 Season 2
YUN ZHU 1,435 Super User 2025 Season 2