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 / !IsBlank not working a...
Power Apps
Unanswered

!IsBlank not working as expected with Button DisplayMode

(0) ShareShare
ReportReport
Posted on by 25

Hi Folks, 

 

I fairly new with PowerApps and looking for some help with a button DisplayMode logic.

 

I have several fields that are required to be filled out on a form in order for the button to be enabled to submit.

 

If(!IsBlank(DeviceManufacturerValue) && !IsBlank(DeviceModel_Value) && !IsBlank(MemorySize_Value) && !IsBlank(Justification_Value) && !IsBlank(PhoneCost_Value),DisplayMode.Edit, DisplayMode.Disabled)

 

This all appear to working fine at first glance and once all required fields are populated the button goes to edit mode but if I remove the value selected from DeviceManufacturer, which is a drop down selectable field, I would expect the button to be grayed out but that is not the case. I'm getting the same problem with a person field which does a lookup. 

 

Can anyone please tell me how I can fix this behavior? If someone removes the selection, my button should be grayed out until a new selection is made.

 

Thank you.

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

    Hi @ebelanger ,

     

    In the formula are you using variables or Control name. 

     

    I would suggest you to use control name 

     

    eg IsBlank(dropdownName.Selected.xxxx)

     

     

    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.

  • ebelanger Profile Picture
    25 on at

    @PriyankaGeethik , I'm pretty sure I'm not using variables. Let me try the format you suggested.

     

    Thank you.

  • Verified answer
    ebelanger Profile Picture
    25 on at

    @PriyankaGeethik , I ended modifying the formula to use IsEmpty with the dropdown fields and that works perfectly.

     

    If(!IsEmpty(DeviceManufacturerValue.SelectedItems.Value) && !IsBlank(DeviceModel_Value) && !IsEmpty(MemorySize_Value.SelectedItems.Value) && !IsBlank(Justification_Value) && !IsBlank(PhoneCost_Value),DisplayMode.Edit, DisplayMode.Disabled)

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