Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

fields mandatory ignoring

Posted on by 1,534

hi expert i have basic problem regarding mandatory fields, i have made some fields mandatory on CustTable Form, 

fields are

segmentId,

SalesDistrict,

when i open a new customer , so the above mentioned fields are underline, which means that these are mandatory to fill before close the form, but what happend in my case when user left all the fields blanks and did not fill any field in that area(Sales Demographics) in which these two fields are mandatory, the form close without notification that fill the mandatory fields first..

below the screen shot attached.

salesDemographics.png

and when user fill any field in sales demographics area then my mandatory code working properly,

please guide me where is the problem.

*This post is locked for comments

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: fields mandatory ignoring

    Hi Munsif,

    The best to do this now is adding the code on datasource level. In that way the mandatory fields should also be checked.

    If you create a record on table level, you will bypass the mandatory check.

  • munsif Profile Picture
    munsif 1,534 on at
    RE: fields mandatory ignoring

    Thanks Andre, can you elaborate , means that where to do that customization ,either table level, or form datasource level..

    Regards.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: fields mandatory ignoring

    Hi Munsif,

    These fields are not part of the customer table, but another table. If the field of the second table are not touched, the validation for mandatory will not be triggered. You could create a small customization to write the record of this table if the customer table itself will be saved.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans