Skip to main content
Question

is it possible to make a button visible in one tenant but not in the other?

  • April 7, 2026
  • 3 replies
  • 42 views

I have a custom action button and I was wondering if I can make it visible in only one of our tenants.

3 replies

Forum|alt.badge.img+8
  • Captain II
  • April 7, 2026

What I do is add a boolean field to the related setup table like SOSetup that toggles the functionality on/off. Add that field to the setup screen and then, by tenant, you can toggle the visibility of your button on and off.


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • April 8, 2026

You can also hide the button using the Access Rights. 


Forum|alt.badge.img
  • Varsity I
  • April 8, 2026

you can also use this by company validation

protected void _(Events.RowSelected<YourDAC> e)

{

if (e.Row == null) return;

 

// Example: check company/tenant

if (PXAccess.GetCompanyName() == "TenantA")

{

YourAction.SetVisible(true);

}

else

{

YourAction.SetVisible(false);

}

}

 

or 
 

Create a setup flag like:

EnableButton = true/false

Control visibility based on that