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
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
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