Announcements
I need to gray out a field and/or card based on the value in another field. For example, if field named Fuel Type has a value of Oil, I want field Amps to be grayed out. How do I accomplish that? Is it through the DisplayMode property? What's the syntax for that?
thanks for the help.
Hi @ahhollan
The Display mode property is the one to use.
It would be the name of the control in the Fuel Type card (say dropdown1)
If(Dropdown1.Selected.Value = "Oil", Disabled, Edit)
Use an IF() statement to check the value of the other field and set displayMode to disabled to grey out the field. Something like this.
if('Fuel Type'.value = "Oil",displaymode.disabled, displaymode.edit)
Worked well. Thanks. One more question, if I want to add multiple criteria to disable how would I do that? say I want to do disable if the value is "Gas" or if the value was "Oil".
If(Dropdown1.Selected.Value = "Oil"||"Gas", Disabled, Edit)
It works for the first value, but not the second.
@ahhollan
Try
If(Dropdown1.Selected.Value = OR("Oil","Gas"), Disabled, Edit)
@Drrickryp Minor correction. it should be
If(Dropdown1.Selected.Value = "Oil"||Dropdown1.Selected.Value = "Gas", Disabled, Edit)
You have to duplicate the whole formula, not just the right side value.
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 community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 402 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 296 Most Valuable Professional