Hi,
When i set a field as mandatory by code, the red star appears but it still allows me to save without it being filled
if(//) { Field1.mandatory(true); } else { Field1.mandatory(false); }
Hi junior AX,
A small addition to the comments above. Mohit shared my blog. Also, the option described in this blog is not working for unbound controls.
Hello Junior AX,
Just like Mohit said, I doubt you will get the result using .mandatory.
You check if the field is empty and throw an error yourself.
Check this.
community.dynamics.com/.../want-to-mandatory-display-unbound-field
Hi, I think unbound fields cannot be changed to mandatory. Even though it will show red line and feels it is mandatory but it's not.
There is a feature to make field required by personalization but won't recommend if required for all users as user can disable it and moreover personalizationn has to be used by all users.
Hi Komi,
This is on a form and field1 is a control with lookup but it's not bound to any datasource
Are you this on a table extension or your custom table ?
Share the actual code with us.
André Arnaud de Cal...
292,031
Super User 2025 Season 1
Martin Dráb
230,868
Most Valuable Professional
nmaenpaa
101,156