Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Ribbon Workbench - custom button

Posted on by 1,695

I am creating a custom button that is enabled if a record is selected on a view.

What I am struggling to do is how to hide the button if no records are selected and show if a record(s) are selected.

Can anyone assist

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Ribbon Workbench - custom button

    Hi ,

    Add  enable rules in the custom button command and pass 'SelectedControlSelectedItemReferences' parameter in the custom JS enable rules to get the selected record I'd while record selected. If you get any record

    Id then show button by returning true else return false.

    See below reference for more info -

    ribbonworkbench.uservoice.com/.../129783-pass-the-currently-selected-grid-row-s-to-a-custo

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

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