Hi,
I have a custom button on my ribbon on click of which an html popup opens. On closing this html popup, I want to refresh my ribbon.
Any help would be appreciated!!
Thanks & Regards,
Shreya K.
Hi partner,
"Formcontext" is only available in form events.
In your case, you could use "Xrm.Page" instead.
Best Regards,
Leo
Hi Leo,
Thanks for your response. But, how do I get the "formcontext" in the event of closing the html pop up.
Hi Partner,
You could add "formContext.ui.refreshRibbon(refreshAll)" in the event of closing the html pop.
DOC.
docs.microsoft.com/.../refreshribbon
Samples.
community.dynamics.com/.../refresh-form-ribbon-to-show-hide-button-based-on-attribute-value
Hope it helps.
Best Regards,
Leo
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156