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 / How to include Multipl...
Power Apps
Unanswered

How to include Multiple IsBlank within a single If function

(0) ShareShare
ReportReport
Posted on by

Hi Power Community experts, 

 

I am trying to disable/enable a Submit Button only when certain required fields are filled out. (9 required fields to be exact) 

I am not using an edit form but many Text,Combo,Dropdown boxes which I have to individually make sure are not blank upon a submit button. 

The formula in the display mode property of the Submit Button works only for one ISblank expression:

If(IsBlank(RegionDrpDown),DisplayMode.Disabled,DisplayMode.Edit) 

What does not work: 

If(And(IsBlank(RegionDrpDown),Isblank(TopicDropdown)),DisplayMode.Disabled,DisplayMode.Edit)

or 

If(IsBlank(RegionDrpDown.Selected.Value And TopicDropdown.Selected.Value And LocationDropdown.Selected.Value And DateDrpDown.Selected.Date),DisplayMode.Disabled,DisplayMode.Edit) 

or

If(IsBlank(RegionDrpDown), DisplayMode.Disabled,DisplayMode.Edit) ; or && If(IsBlank(TopicDrpDown),DisplayMode.Disabled,DisplayMode.Edit)

 

also i get an error: Expected Enum value when I try to write two if statements as above. 

 

Please help how I can accommodate 9 required field values as Multiple Isblanks within a display mode property. 

 

Thank you 

 

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

    Hi @RoyDsouza ,

     

    Please try below code. 

    If(IsBlank(RegionDrpDown.Selected.Value) || IsBlank(TopicDropdown.Selected.Value) || IsBlank(LocationDropdown.Selected.Value) || IsBlank(DateDrpDown.Selected.Date) ,DisplayMode.Disabled,DisplayMode.Edit)

     

    Please click Accept as solution 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 Thumbs Up.

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Hi @PriyankaGeethik , 

    Thank you for the solution- The || operator worked perfectly. 

    However, i am in doubt as to how did an OR operator worked when rather logically it should be AND. 

    Please shed some light 🙂 

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @RoyDsouza ,

     

    As per your requirement if any of the control is blank if should be disabled. 

    Logically: from given values if you want to check Any of the values is true (OR) 

    Logically: from given values if you want to check All of the condition is true (AND)

     

    In your case the code was when all are blank than Disable. If any of the values are not blank it wont disable. So I just changed the code to if any of the control is blank Disable. 

     

    Please click Accept as solution 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 Thumbs Up.

  • Community Power Platform Member Profile Picture
    on at

    Hi @PriyankaGeethik , 

    You explained that very well. Thank you so much. 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard