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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Set field visibility according to company.

(0) ShareShare
ReportReport
Posted on by 5

I need to set a specific field's visibility according to company in Dynamics 365. Let's say I have two legal entities (companies), cmpA and cmpB. And I need to show FieldA from TableA on my form when I select cmpA on browser. But when I select cmpB, the field should not appear on the form.

How do I achieve this? Should I use a method (if yes, then how do I write the required method) for it or is there any other procedure? And should I do it on table level or form level? 

I have the same question (0)
  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at
    RE: Set field visibility according to company.

    Hi,

    If you are not developer, the easiest way is to create a business rules: learn.microsoft.com/.../create-business-rules-recommendations-apply-logic-form and community.dynamics.com/.../using-business-rules-to-hide-fields-and-make-them-required-as-needed

    Alternatively, you can do it using javascript: community.dynamics.com/.../hide-and-show-a-field-in-dynamics-365-crm-using-javascript

  • Suggested answer
    omesh Profile Picture
    141 on at
    RE: Set field visibility according to company.

    Hi Young,

    Have you tried using 'CountryRegionCodes' field property on table level. If you set it for particular company then the field will be visible for the selected company.

    Please check the link -  Apply country/region context - Finance & Operations | Dynamics 365 | Microsoft Learn

    Thanks,

    Umesh

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 54 Most Valuable Professional

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 45 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans