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?