Announcements
I am converting a form over from InfoPath to PowerApps. In InfoPath there is an option to Disable Control if the status box equals some text. What would be the best way to do this in PowerApps.
@lbolin - you will need to leverage the DisplayMode property of the control you're using.
For example, suppose we want to disable a Button control based on whether the selected value from a Dropdown control contains either of your Status options, we can apply the below to the DisplayMode property:
If( Dropdown1.Selected.Value in [ "Pending Bid Waiver", "Pending CAR Approved", "CANCELLED" ], DisplayMode.Disabled, DisplayMode.Edit )
Further reading:
https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/properties-core
I have everything in data cards. So this is the code i used
If(StatusValue.Value = "Pending Bid Waiver Approvals" || StatusValue.Value ="Pending CAR Approvals"||StatusValue.Value = "CANCELLED",DisplayMode.View,Parent.DisplayMode)
I haven't been able to test it quite yet.
@lbolin - ok. Do you have a question?
@lbolin - your code is fine btw. It will produce the same result as the code I suggested.
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 385
Vish WR 367
timl 340 Super User 2026 Season 1