What is the best way to hide/unhide or enable/disable a button based on an unrelated entity?

  1. Since you're on 8.2 on prem, you're limited to using Ribbon Workbench (sorry PowerFx peeps). Create a script that returns a boolean value.

  2. I had another thought - what does your Report button do? If it calls an action or just performs some OOB CRUD operation, you could register a pre-validation plugin that queries for related record Bs and if it finds none, throw an InvalidPluginExecutionException that alerts the user and cancels the transaction.

  3. Javascript and Ribbon Workbench is the goto if the button is legacy button - ie out of box. If it is custom, then PowerFX might work

Leave a Reply

Your email address will not be published. Required fields are marked *

Author: admin