Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

How to hide a standard field and prevent users from adding the field again

Posted on by 31

I hided a standard field on a standard page using "Visible = false" in a page extension.

How can I make it impossible for users to add the field again in the page personalization?

  • Suggested answer
    Greg Enns Profile Picture
    Greg Enns 1,102 on at
    RE: How to hide a standard field and prevent users from adding the field again

    Maybe try setting "HideValue = true"? This in addition to "Visible = false" seems like it would be sufficient.

  • Thorsten Kern Profile Picture
    Thorsten Kern 31 on at
    RE: How to hide a standard field and prevent users from adding the field again

    "Application areas enable hiding entire business scenarios and you can have the same code base, which makes it possible to quickly modify the UI for different business scenarios or audiences. However, tagging errors as missing tags or incorrect tags will occur and every single control will need to be tagged."

    (docs.microsoft.com/.../devenv-extending-application-areas)

    In this individual case, the effort seems a bit high. Are the application areas worth using in the long run?

  • Thorsten Kern Profile Picture
    Thorsten Kern 31 on at
    RE: How to hide a standard field and prevent users from adding the field again

    Message: "The property 'AccessByPermission' cannot be customized.AL(AL0246)"

  • Thorsten Kern Profile Picture
    Thorsten Kern 31 on at
    RE: How to hide a standard field and prevent users from adding the field again

    Thank you. I will share the result.

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: How to hide a standard field and prevent users from adding the field again

    Last option from me: docs.microsoft.com/.../devenv-applicationarea-property

  • Thorsten Kern Profile Picture
    Thorsten Kern 31 on at
    RE: How to hide a standard field and prevent users from adding the field again

    The requirement is that the field should no longer be visible to any user. I was hoping that a standard field could be completely removed from a standard page (e.g. item list). The AccessByPermission property sounded to me like a user with the SUPER permission set would see the field anyway. Is that correct?

    Still, it could be a workaround. I will give it a try.

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: How to hide a standard field and prevent users from adding the field again

    What about: docs.microsoft.com/.../devenv-accessbypermission-property

  • Thorsten Kern Profile Picture
    Thorsten Kern 31 on at
    RE: How to hide a standard field and prevent users from adding the field again

    I tried "Enabled = false", but the field is still displayed as a column on the list page.

  • JAngle Profile Picture
    JAngle 33,159 on at
    RE: How to hide a standard field and prevent users from adding the field again

    Try: docs.microsoft.com/.../devenv-enabled-property

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans