Notifications
Announcements
I would like to disable the 'Reject', 'Cancel' and 'Request Change' buttons when the 'Approve' button is clicked. I thougth the below formula would work, but it didn't.
give all the non approve buttons this displaymode
Switch(chosenBtn=btnApprove, true, DisplayMode.Disabled, DisplayMode.Edit)
and add this to the approve buttons onselect
UpdateContext({chosenBtn:Self})
@TheRobRush ,
What does this do?
I'm confused by the 'Self'
Also, how do I enable those buttons again once I navigate away from the page? When I go to the same page with a different item, those buttons are still disabled.
Tells your aapp.via context that the submit button has been selected.
To reset, in the onvisible.of that screen place
UpdateContext({chosenBtn:Blank()})
@TheRobRush , thanks for responding but I get the following error
hover arond the squiggly lines back and forth until it shows you the actual error, or hover over the red x on the screen. righ tnow you are not showing the error, jsut the definition of updatecontext
Oh Nevermind I see recreated iton my side, give me one minute
So change it from blank to ANY name of one of those other buttons doesn't matter which just choose one
like so
UpdateContext({chosenBtn:btnReject})
Thank you @TheRobRush
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 721 Most Valuable Professional
Michael E. Gernaey 320 Super User 2025 Season 2
Power Platform 1919 268