Notifications
Announcements
No record found.
Dear Dynamics community,
I have (hopefully) a simply-answered question:In the below form I have a field "Freight Responsibility" that has an enum backing the field on the table. I've made the field on the table required, the field on the data source required, tried to make the field mandatory through code, and I still cannot get the field (a combobox) to highlight with a red surround when the form loads as 'required.'
Any suggestions?
Hi delarosaau,
With version 10.0.0.12 it is possible to make fields mandatory using personalisation.
You can refer to:
henrikmarxlarsen.wordpress.com/.../
or you can add the datasource.object(fieldnum(table,field1)).mandatory(true) in the validataWrite() method of your form datasource;
regards
Enum shouldn't ever be empty - it always has one of its element as the value.
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.
Martin Dráb 584 Most Valuable Professional
André Arnaud de Cal... 499 Super User 2025 Season 2
Sohaib Cheema 254 User Group Leader