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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Haque 84
WarrenBelz 79 Most Valuable Professional
Kalathiya 40 Super User 2026 Season 1