How can I get rid of my button from one company in worker screen

Hi Experts,

I have added one button ‘abc’ in worker screen : Work History->Summary. But this button should only enabled/visible for the second company(If you have company DAT and XYZ, only XYZ can have that newly added button). But the ‘abc’ button is visible/shown both the employmenttabpages(DAT and XYZ).

How can I restrict this functionality? Please guide me on this

Thanks in advance,
Mark

I’d think if you create a role / privilege for this button and only assigned to a user in the companies that you want it shown, it should work.

have you tried that?

Hi @jacob.roder ,
Thanks for the reply. But business doesn’t want to use roles and privileges. They expect that the button should be enabled/shown only for the second company XYZ not for the first company DAT)

How to achieve this experts, any leads or ideas. Please let me know

@Marcus_Mark, add a parameter in the module in which the form of button lies. Write code to make the button visible/invisible based on the parameter. Keep the parameter enabled in XYZ only. Hardcoding is also another approach, but wouldn’t suggest if you plan on adding a new company in future where you may need to add this.

Hi @Krupa , Thanks for the reply. I will try and let you know