web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Enable or disable a SP...
Power Apps
Answered

Enable or disable a SP Choice control based on whether other Choice controls are empty or not.

(0) ShareShare
ReportReport
Posted on by 79

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.

 

Categories:
  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,

    Please try using below formula on data card value 5 display mode-

    If(IsBlank(DataCardValue1.Selected) &&
         IsBlank(DataCardValue2.Selected) &&   IsBlank(DataCardValue3.Selected) &&            IsBlank(DataCardValue4.Selected),DisplayMode.Edit, DisplayMode.Disabled)

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard