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 / Validate Dropdown box ...
Power Apps
Answered

Validate Dropdown box is not chosen

(0) ShareShare
ReportReport
Posted on by 140

Hi all,

 

I am trying to change the display mode of my button based on the values of the input boxes, drop down box and date picker. The logic is like this: If all the values of input boxes are blank, or drop down box not selected ( default value shown is the choice from sharepoint) or date picker is not chosen (managed to set the date picker to blank), the display mode will be set to view.  

 

I wrote the following syntax but couldn't get it working. Suspect that the error comes from the dropdown boxes. Anyone can advise how to resolve this?

 

If(IsBlank(NameInput) Or IsBlank(emailadd_5) Or IsBlank(PInput_4) Or IsBlank(TInput_5) Or IsBlank(ServiceInput_4) Or IsEmpty(Dropdown_4) Or IsBlank(O_Input_4) Or IsEmpty(P_Dropdown_5) Or IsBlank(E_Input_5) Or IsBlank(O_Input_5) Or IsBlank(T_Input_5) Or IsBlank(Activity_Input_5) Or IsBlank(DateofLast) Or IsBlank(DateofNext), DisplayMode.Edit, DisplayMode.View)

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    It quite easier working with combobox on some of these issues. But you can try

    Dropdown1.Selected.Value = Blank() || "" for all the Dropdowns.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Boon-1 Profile Picture
    140 on at

    Realise i have a typo for the syntax. Here is the revised on but still it doesn't work

     

    If(IsBlank(NameInput.Text) Or IsBlank(emailadd_5.Text) Or IsBlank(PInput_4.Text) Or IsBlank(TInput_5.Text) Or IsBlank(STInput_4.Text) Or IsBlank(Ohm_Input_4.Text) Or IsBlank(Equip_5.Text) Or IsBlank(OPInput_5.Text) Or IsBlank(OTInput_5.Text) Or IsBlank(Activity_5.Text) Or IsBlank(DateLast.SelectedDate) Or IsBlank(DateNext.SelectedDate) Or IsEmpty(Dropdown_5.SelectedText.Value) Or IsEmpty(Dropdown_4.SelectedText.Value), DisplayMode.View, DisplayMode.Edit)

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Have tested with;


    If(IsBlank(NameInput) Or IsBlank(emailadd_5) Or IsBlank(PInput_4) Or IsBlank(TInput_5) Or IsBlank(STInput_4) Or IsBlank(Ohm_Input_4) Or IsBlank(Equip_5) Or IsBlank(OPInput_5) Or IsBlank(OTInput_5) Or
    IsBlank(Activity_5) Or IsBlank(DateLast.SelectedDate) Or IsBlank(DateNext.SelectedDate) Or Dropdown_5.SelectedText.Value =Blank() Or Dropdown_4.SelectedText.Value=Blank(), DisplayMode.View, DisplayMode.Edit)

     

    You can further play with

    Dropdown_4.SelectedText.ColumnName

    If you have issues with the formula.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Boon-1 Profile Picture
    140 on at

    Hi Eska,

     

    My dropdown box by default shows the first item of the choices in SharePoint list and therefore it is not blank. How do i check if the user has made changes on the choice selected ? And there is also another problem that the choice could be the value that he is selecting?

  • eka24 Profile Picture
    20,925 on at

    If don't want the dropdown Automatically have an item, change the AllowEmptySelection property of the dropdown  to true.

    This should solve both problems.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • Boon-1 Profile Picture
    140 on at

    Thanks Eka24, I managed to get it working !

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

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard