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

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,135 Super User 2025 Season 2 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
    153,034 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard