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 / Button selection combi...
Power Apps
Unanswered

Button selection combination and number output

(0) ShareShare
ReportReport
Posted on by 5

Hi - Need a small help as I am just starting to explore the Power App. Layout like below.

 

Kay_Sin_0-1684476807162.png

 

Situation -

Select only button from each of the 3 sections (C, U & E)
• Condition - when you select S under C section – you cannot select “H” under U section.
The rest greyed out after selection from each section.
A number is populated based on the selection when you click on “Submit”.
“Reset” will clear all selection and number.

Categories:
  • Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @Kay_Sin ,

     

    You can use collection to capture the values.

    Is that condition the only condition you want?

    When "S" is selected in section C -> "H" is section U cannot be selected?

     

  • Kay_Sin Profile Picture
    5 on at

    No, that is just one out of the others. There are few others as well.

  • developerAJ Profile Picture
    4,763 on at

    @Kay_Sin 

     

    Use below formulas for button on select

    If(IsBlank( LookUp(colBtnSelection,Category="C" && button="S")),Collect(colBtnSelection,{Category:"C",button:"S"}),Remove(colBtnSelection, LookUp(colBtnSelection,Category="C" && button="S")))

    If(IsBlank( LookUp(colBtnSelection,Category="C" && button="M")),Collect(colBtnSelection,{Category:"C",button:"M"}),Remove(colBtnSelection, LookUp(colBtnSelection,Category="C" && button="M")))

    If(IsBlank( LookUp(colBtnSelection,Category="U" && button="S")),Collect(colBtnSelection,{Category:"U",button:"S"}),Remove(colBtnSelection, LookUp(colBtnSelection,Category="U" && button="S")))

    ..... respectively 

     

    for displaymode apart from h under U use:

    If(IsBlank( LookUp(colBtnSelection,Category="C" && button="S")),Collect(colBtnSelection,{Category:"C",button:"S"}),Remove(colBtnSelection, LookUp(colBtnSelection,Category="C" && button="S")))

    ..... respectively 

     

    for H under U use:

    If(IsBlank(LookUp(colBtnSelection,Category="C" && button="S")), If( IsBlank( LookUp(colBtnSelection,Category="U")),DisplayMode.Edit ,If(!IsBlank(LookUp(colBtnSelection,Category="U" && button="H")), DisplayMode.Edit,DisplayMode.Disabled)),DisplayMode.Disabled)

     

    that should solve your requirement.

     

    Please mark my response as solution if it resolves your issue😊

  • Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @Kay_Sin ,

     

    You can try this, although it would be better to have dropdown instead buttons

     

    ClearCollect(
     ColCombination,
     {
     Section: "C",
     Selection: ""
     },
     {
     Section: "U",
     Selection: ""
     },
     {
     Section: "E",
     Selection: ""
     }
    );
    
    //For Buttons on Section C
    Patch(ColCombination, LookUp(ColCombination, Section = "C"), {Selection: Self.Text})
    
    //For Buttons on Section U
    Patch(ColCombination, LookUp(ColCombination, Section = "U"), {Selection: Self.Text})
    
    //For Buttons on Section E
    Patch(ColCombination, LookUp(ColCombination, Section = "E"), {Selection: Self.Text})

     

     

    For condition:

    //DisplayMode on Buttons of H for section U
    If(LookUp(ColCombination, Section = "C", ThisRecord.Selection) = "S", DisplayMode.Disabled, DisplayMode.Edit)

     

    Hope this helps

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard