Hi,
I have a canvas app, and I have a few buttons. Each button makes hidden sections of choices appear. I would like this to be a "pressed once, and then disable" type experience.
I have read through all the similar posts, and tried a few work arounds, but nothing seems to work.
The buttons create collections and unhide sections. After that, it shouldn't be able to be used again.
Any suggestions on how I can overcome this?
Thanks.
Solved! Go to Solution.
Hi @DGWolfe ,
You need to set a Variable (call it whatever you want) on the button OnSelect
UpdateContext({varDisable:true})
Then the DisplayMode of the Button
If(
varDisable,
DisplayM<ode.Disabled,
DisplayMode.Edit
)
Also at Screen OnVisible (and whenever you want the button to work
UpdateContext({varDisable:false})
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Hi @DGWolfe ,
You need to set a Variable (call it whatever you want) on the button OnSelect
UpdateContext({varDisable:true})
Then the DisplayMode of the Button
If(
varDisable,
DisplayM<ode.Disabled,
DisplayMode.Edit
)
Also at Screen OnVisible (and whenever you want the button to work
UpdateContext({varDisable:false})
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
199 | |
70 | |
50 | |
46 | |
20 |
User | Count |
---|---|
253 | |
120 | |
84 | |
79 | |
68 |