Hi,
Glad to hear you are using the Ribbon Workbench ;)
You will need to use a Custom JavaScript action that sets a flag (say 'window.customWindowOpened=true') then make a call to:
Xrm.Page.ui.refreshRibbon()
When the window is closed, you should then reset the customWindowOpened flag to false and call refreshRibbon again.
The magic will be in the Enable Rules - add a custom Enable Rule that calls a JavaScript function that returns the inverted value of the window.customWindowOpened flag.
hth,
Scott
Scott Durow
Blog www.develop1.net
Follow Me
Rockstar365
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"