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,297 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
    156,127 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard