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 / Hi, I am beginner of p...
Power Apps
Unanswered

Hi, I am beginner of powerapps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a requirement to design a dropdown in PowerApps, Where if I have 10 dropdown values inside that dropdown in which 3 of them will be mandatory to select. My scenario-> I need my users to select mandatorily 3 values from dropdown and submit each time. in addition they can even select additional values after selecting these mandatory values. These dropdown values will be from SharePoint list. Kindly guide me.

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    I assume you mean combobox rather than dropdown, since dropdowns can't multiselect.  But, there is no setting on the combobox that will let you require 3 selections.  But you can change the display mode state of the submit button if less than three items are selected.  To do that put the following formula in the OnChange property of the ComboBox.

    Set(selectedCount, CountRows( ComboBox2.SelectedItems))

    Then set the displayMode property of the submit button to:

    If(selectedCount< 3,DisplayMode.Disabled,DisplayMode.Edit)

     They will not be able to submit the selections unless they select at least 3 items.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    As @Pstork1 said, i believe you are using combo box. I also think you control the Submit button Display mode, If the amount of selected items is large than 2, then the button is in edit mode. Otherwise, it is in Disabled mode, and show a warning in a label.

    Set DisplayMode of Submit button: 

    If(CountRows(ComboBox1.SelectedItems)>=3,DisplayMode.Edit,Disabled)

    Set Text of Label: 

    If(CountRows(ComboBox1.SelectedItems)<3,"Note: Please select more then 3 items!")

    Snipaste_2020-01-03_11-00-52.pngSnipaste_2020-01-03_11-00-43.png

    If the combo box is in a form, we can more easily use the errormessage label in data card to display a warning.

    Modify the Text of ErrorMessage label: 

    If(CountRows(DataCardValue1.SelectedItems)<3,"Note: Please select more then 3 items!",Parent.Error)

    Sik

     

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard