RE: Wrestling with Ribbon Workbench and Dynamic buttons
Hi ,
I understand both are doing same functionality but they are located in different places forms and home grid. So you may have added the enable rule in the forms based on some condition and its working as expected on the forms and not in the entity home grid. So there is no straight forward way to do that as the button is showing in the home grid and when you click the button you need to pass the selected record id to the action. Do the steps shared in the above link shared by Ravi.
In the enable rule JS functions you only get the id and not all the value to fulfill your condition so you need to write some API request to get the data and implement your condition and return true , false so that button will be show/hide based on the selected records.