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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Disable one choice fro...
Power Apps
Answered

Disable one choice from ComboBox

(0) ShareShare
ReportReport
Posted on by 67
Hy guys,

i have a ComboBox referring to a SharePoint list to get the choices from the column "Kategorie"
 
i used this code to get the choices as Items 
Choices([@’ARCH’].Kategorie)
Let’s say i have 4 different choices for example:

Choice 1
Choice 2
Choice 3
Choice 4
 
Is there a possibility to only show choice 1, choice 2 and choice 4 in the ComboBox by using Choices()?

Thanks for your help
 
Primo
Categories:
I have the same question (0)
  • Nirav Raval (Akira28) Profile Picture
    153 Moderator on at
    Hi Primo Centurio ,

    Use collection it will help you show choices in combobox. 🤞

    Try below formula  OnStart
    ClearCollect(
        FilteredChoices,
        Filter(Choices([@'ARCH'].Kategorie), Value in ["Choice 1", "Choice 2", "Choice 4"])
    )
     
    Set Item on combobox
    FilteredChoices


    If this post solved your issue, clicking 'Does this answer your question' will help others discover the solution and close the topic. If you found it helpful, a Like would be awesome!


    Regards,
    Nirav J Raval(Akira28)

     
  • Suggested answer
    Dee Ramos Profile Picture
    47 on at

    Here's an approach you can use to show only "Choice 1", "Choice 2", and "Choice 4" while still pulling the choices from your Kategorie column:

    1. ComboBox Items Property: Instead of using Choices([@'ARCH'].Kategorie) directly, you can apply a filter to only show the specific choices you want. Use this formula in the Items property of the ComboBox:

      Filter(Choices([@'ARCH'].Kategorie), 
             Value in ["Choice 1", "Choice 2", "Choice 4"])
      

    This will filter the options and display only the choices you want in the ComboBox.

    Let me know if that helps!

  • Primo Centurio Profile Picture
    67 on at
    Thanks @deeramos10 and @Nirav (Akira28)

    i have one question concerning your codes.
    What if someone add "Choice 5" to the Choices on the SharePoint list, which has to been shown into the ComboBox too.
    Is there another possibility/way so that i do not have to update the code each time someone adds a new choice?
     
    Thanks for your help :)
  • Suggested answer
    ANB Profile Picture
    7,223 Super User 2025 Season 2 on at
     
    If someone add "Choice 5" to the Choices on the SharePoint list, then it that case you have to edit the code again.
     
    However, I can provide you some other workaround.
     
    1. Create Kategorie as single line text data type column in SP list ARCH.
    2. Create another SP list lets say "Kategorie".
    3. This new list will have 2 columns, Name of Single Line text data type and IsActive of Yes/NO data type and default is set to No.
    4. Then in app for the item property of combo box, you can have this code: Filter(Kategorie, IsActive = true). With this only items which are set to active will be shown in app and even if anybody add new item in the list Kategorie will be set to No because of default is set to No.
     
    Thanks,
    ANB
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
     
     
     
  • Verified answer
    timl Profile Picture
    36,415 Super User 2025 Season 2 on at
    Hi Primo Centurio
     
    If your requirement is to exclude "Choice 3", you can use this formula. If "Choice 5" were added to SharePoint later, this formula would show "Choice 5"
    Filter(Choices([@'ARCH'].Kategorie), 
           Value <> "Choice 3"
    )
     
  • Primo Centurio Profile Picture
    67 on at
    timl thank you, that’s exactly what i i was searching.

    Thanks also to the rest :)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard