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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to mark a ComboBox field as mandatory

(0) ShareShare
ReportReport
Posted on by 70

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?

1016.pastedimage1616095697922v1.png

I have the same question (0)
  • huijij Profile Picture
    19,811 on at

    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

  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    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.

Helpful resources

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans