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

Community site session details

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

Hide middle name field globally

(0) ShareShare
ReportReport
Posted on by 6,470

Hello,

Is there any possibility to hide a middle name globally in the system?

We have a requirement, that during the creation of any record in the system where the middle name is involved, we should hide them.

We will have a NoYes parameter field and based on it, we would like to hide the field everywhere.

Like Customer, Vendor etc..

If there is no possibility, what would be the approach to achieve it with x++?

Thanks

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,022 Super User 2025 Season 2 on at
    RE: Hide middle name field globally

    Hi Johnny,

    This would require an implementation per form. You can write common coding in a class method and call the logic from each form.

  • Johnny Profile Picture
    6,470 on at
    RE: Hide middle name field globally

    Hello Andre,

    Yes, the purpose of parameter is that it will be set to yes or no per legal entity.

    Does it mean we should write a x++ code per form where we have the middle name, or it is somehow possible to write the code only for DirpersonName table?

    Thanks

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    299,022 Super User 2025 Season 2 on at
    RE: Hide middle name field globally

    Hi Johnny,

    Can you tell the purpose of the parameter? Would there be a difference per legal entity or another factor?

    If it needs to be dependent on the parameter, you would need to write x+ code as extension of all forms where it is displayed.

    If it is related to the legal entity, you need to be aware that the persons in the application are in a global table.

    If the Middle name should always be hidden, you can think of adding a security role with deny permissions for the Middle name field on the DirPersonName table and assign it to all users. You can also extend the system user role with the deny permission. Note that a system administrator would still see the field.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,206

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 596 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans