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 / How to validate multip...
Power Apps
Answered

How to validate multiple dropdowns

(0) ShareShare
ReportReport
Posted on by 36

As the title implies, my customized Sharepoint form is using multiple dropdowns for data entry. I'm trying to validate the form to ensure that at least one of these dropdowns is not empty. This formula works for ONE dropdown: 

If(IsBlank(Dropdown1.Selected.Value), Notify("You must fill out of one the dropdowns", NotificationType.Error,3000), SubmitForm(SharePointForm1))

 

However, if I modify it to this:

If(IsBlank(Dropdown1.Selected.Value) Or IsBlank(Dropdown2.Selected.Value), Notify("You must fill out of one the dropdowns", NotificationType.Error,3000), SubmitForm(SharePointForm1))

 

it's wanting to have both dropdowns (Dropdown1 and Dropdown2) to have value before it submits. 

 

Any ideas? 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @m15433b 

    If(IsBlank(Dropdown1.Selected.Value) And IsBlank(Dropdown2.Selected.Value), Notify("You must fill out of one the dropdowns", NotificationType.Error,3000), SubmitForm(SharePointForm1))
  • m15433b Profile Picture
    36 on at

    Thanks for the suggestion, but doesn't the 'And' operator (instead of 'Or') imply that both dropdowns need to have value? I want the form to validate as long as there is at least one dropdown that is not blank. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

     

    If( 
     !IsBlank(Dropdown1.Selected.Value) Or 
     !IsBlank(Dropdown2.Selected.Value),SubmitForm(SharePointForm1),
     Notify("You must fill out of one the dropdowns", NotificationType.Error,3000)
    )

    @m15433b 

    Isn't that what the AND statement says, if both are blank, then send the notification, otherwise submit the form. 

  • m15433b Profile Picture
    36 on at

    Ok, I was thinking of this: !IsBlanlk(....). I tried your suggestion it and it works. The whole time I had the conditions backwards! Thanks for your help. Will mark your answer as the solution. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello Rick, I am stuck. I have two dropdowns in my app Preparer and Reviewer. This form was once upon a time an InfoPath form and the rule for the Reviewer field was "If Reviewer equals Preparer or Preparer is blank then disable. Now that I have recreated it in power apps I can not seem to get this to work. I have tried the following "IsMatch(DataCardValue8.Selected.Value,
    Notify("Preparer and Reviewer can not be the same.") I put this in the On Select. Can you point me in the right direction?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    If you have a new question, post it rather than piggy-backing on an already answered question.  No one will find it otherwise.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    If you have a new question, post it rather than piggy-backing on an already answered question.  No one will find it otherwise.

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard