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 / Limit the number of it...
Power Apps
Answered

Limit the number of items that can be selected in a combobox

(0) ShareShare
ReportReport
Posted on by 205
Is there a way to set the limit of items that a user can select in a combobox?
Categories:
I have the same question (0)
  • Suggested answer
    Inogic Profile Picture
    1,265 Moderator on at
    Hi,

    Yes, we can set the limit of items that a user can select in a combo box.

    Add the below Fx formula on the OnChange property of the Combo box.

    If(CountRows(ComboBox1.SelectedItems)>1,Notify("you can not select more than 1 item",NotificationType.Error) & Reset(ComboBox1))

    In the above example if user will select more than one item he will get an error notification, but it will remove all the previously selected items from combo box.

    Hope this helps.
     
    Thanks!
    Inogic Professional Services: Power Platform/Dynamics 365 CRM
    An expert technical extension for your techno-functional business needs
    Drop an email at crm@inogic.com 
    Service: https://www.inogic.com/services/ 
    Tips and Tricks: https://www.inogic.com/blog/ 
  • Verified answer
    WarrenBelz Profile Picture
    154,755 Most Valuable Professional on at
    Hi ccqn 
    If you put this OnChange of the Combo Box (example for a maximum of 3)
    If(
       CountRows(Self.SelectedItems) = 3,
       Notify("Maximum selections reached", NotificationType.Information),
       CountRows(Self.SelectedItems) > 3,
       Notify("Maximum selections exceeded", NotificationType.Error);
       Reset(Self)
    )
    it will provide a notice if the maximum, and clear the box if this is exceeded. There is no way of only clearing the last item.
     
    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.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard