Skip to main content

Notifications

Dynamics 365 general forum

Refresh ribbon on closing html popup

Posted on by 62

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.

Categories:
  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Refresh ribbon on closing html popup

    Hi partner,

    "Formcontext" is only available in form events.

    carldesouza.com/.../

    In your case, you could use "Xrm.Page" instead.

    Best Regards,

    Leo

  • Shreya kamble Profile Picture
    Shreya kamble 62 on at
    RE: Refresh ribbon on closing html popup

    Hi Leo,

    Thanks for your response. But, how do I get the "formcontext" in the event of closing the html pop up.

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Refresh ribbon on closing html popup

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans