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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 1,986 Super User 2026 Season 1
YUN ZHU 1,071 Super User 2026 Season 1
Dhiren Nagar 975 Super User 2026 Season 1