I have 5 choice controls in a Power Apps form. If any value is selected in any of these then I want to disable the others. If I put the following formula in the DisplayMode for DataCardValue5 It works perfectly.
If(IsBlank(DataCardValue1.Selected),Enable, Disabled)
Given that I have 5 choice controls (DataCardValue1, DataCardValue2, DataCardValue3, DataCardValue4, DataCardValue5) I want this to work if any value is selected for any of the other 4 choice controls.
But, when I try to chain in the other three controls I cannot get the syntax correct. For example, I tried the following and it did not work:
If(IsBlank(DataCardValue1.Selected),Enable, Disabled,
(DataCardValue2.Selected),Enable, Disabled,
(DataCardValue3.Selected),Enable, Disabled,
(DataCardValue4.Selected),Enable, Disabled,
I also tried:
If(IsBlank(DataCardValue1.Selected),Enable,
(DataCardValue2.Selected),Enable,
(DataCardValue3.Selected),Enable,
(DataCardValue4.Selected),Enable, Disabled)
This also did not work. Any help would be appreciated. Thanks.

Report
All responses (
Answers (