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 / When combo box with se...
Power Apps
Answered

When combo box with selection, X icon to delete it

(0) ShareShare
ReportReport
Posted on by 672 Season of Giving Solutions 2025
Hi!
 
So I want an X icon on the right of combo box to delete the options faster. When the combo box is blank, nothing appears, but when an option is chosen, it's visible and when clicking on it, it deletes the selection in the combo box.
Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    1,456 Super User 2026 Season 1 on at
     
    Yes, When the ComboBox is empty, the icon should be hidden. Once an option is selected, the icon becomes visible, and clicking it clears the selection in the ComboBox.
     
    Icon Visible Property:
    !IsBlank(ComboboxName.Selected) //replace with your control name
    Icon OnSelect Property:
    Reset(ComboboxName); //Replace with your control name
    ---------------------------------------------------------------------------------
     
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping!
  • Verified answer
    MS.Ragavendar Profile Picture
    6,078 Super User 2026 Season 1 on at
     
    We have used the button (Modern) Control
     
    Visible -  If(IsBlank(ComboBox3.Selected.Value),false,true)
     
     
     
    On Select -  Reset(ComboBox3)
     
     
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
     
     
  • Charlie Martharper Profile Picture
    672 Season of Giving Solutions 2025 on at
    Hi!
     
    It worked in the first Icon, but when copying the same with the setting for the other 2 icons, it gets something wrong.
    I did the same in the icons below the first, and it doesn't work.
  • MS.Ragavendar Profile Picture
    6,078 Super User 2026 Season 1 on at
     
    I tried to replicate the similar scenario from my end with the below sample dataset and shared the screenshot step by step.
     
    Data:
     
    ClearCollect(
        colGuia,
        { AGA: "CARDIO", Especialitat: "ANESTESIOLOGIA I REANIMACIÓ", ThirdLevel:"Item 1"},
        { AGA: "CARDIO", Especialitat: "DERMATOLOGIA" ,ThirdLevel:"Item 2"},
        { AGA: "CARDIO", Especialitat: "ENDOCRINOLOGIA I NUTRICIÓ" ,ThirdLevel:"Item 3"},
        { AGA: "CARDIO", Especialitat: "ENDOCRINOLOGIA I NUTRICIÓ",ThirdLevel:"Item 4" }, // duplicate on purpose
        { AGA: "CARDIO", Especialitat: "APARELL DIGESTIU" ,ThirdLevel:"Item 5"},
        { AGA: "NEURO",  Especialitat: "DERMATOLOGIA" , ThirdLevel:"Item 6" },
        { AGA: "NEURO",  Especialitat: "ENDOCRINOLOGIA I NUTRICIÓ", ThirdLevel:"Item 7" },
        { AGA: "NEURO",  Especialitat: "ANESTESIOLOGIA I REANIMACIÓ", ThirdLevel:"Item 8" },
        { AGA: "TRAUMA", Especialitat: "CIRURGIA ORTOPÈDICA I TRAUMATOLOGIA", ThirdLevel:"Item 9" },
        { AGA: "TRAUMA", Especialitat: "MEDICINA FÍSICA I REHABILITACIÓ", ThirdLevel:"Item 10" },
        { AGA: "TRAUMA", Especialitat: "APARELL DIGESTIU", ThirdLevel:"Item 11" }
    );
     
    Level 1 Combo Box (CB_1)
     
    Item Property : Distinct(colGuia,AGA)
     
     
    Level 2 Combo Box (CB_2)
     
    Items Property 
    With(
        {
            src: Filter(
                colGuia,
                AGA = CB_1.Selected.Value
            )
        },
        Sort(
            Distinct(
                src,
                Especialitat
            ),
            Value,
            SortOrder.Ascending
        )
    )
    Button Visible Property 
    If(IsBlank(CB_2.Selected.Value),false,true)
    Button OnSelect Property 
    Reset(CB_2)
     
     
     
    Level 3 Combo Box (CB_3)
     
    Items Property 
    With(
        {
            src: Filter(
                colGuia,
                Especialitat = CB_2.Selected.Value
            )
        },
        Sort(
            Distinct(
                src,
                 ThirdLevel
            ),
            Value,
            SortOrder.Ascending
        )
    )
    Button Visible Property 
    If(IsBlank(CB_3.Selected.Value),false,true)
    Button OnSelect Property 
    Reset(CB_3)
     
     
     
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
     
  • Charlie Martharper Profile Picture
    672 Season of Giving Solutions 2025 on at
    Hi!
     
    I mean I have other problem, I will show you. The first  If(IsBlank(ComboBox_Origen.Selected.Value),false,true)
    works correctly, but when going to the second X Icon and trying the same with the second combo box, it returns this error:
     
    So the first one works correctly, and the others if I use the same combo box as first works, but when using the others, "Value" isn't recognized.
    I don't know why that is happening, the name of the combo box is that one and I am following the same steps.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard