cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dbirdRN
New Member

PowerApps DisplayMode Not Working as Before

Recently in PowerApps the ability to disable a button based on Blank fields is not working.

Formula I use in many apps that is not working is:

If(IsBlank(DataCardValue#), Disabled, Edit)

I often have several fields which I separate with || and this has always worked in the past to require fields be filled for the submit button to enable. This not currently working in PowerApps, just noticed this today. Did something change?

2 ACCEPTED SOLUTIONS

Accepted Solutions

This was working for me just a week ago, the problem just showed up.  I will include a couple of screen shots.  The button is outside the form.

dbirdRN_1-1643214763888.png

 

If(IsBlank(DataCardValue6.Text),Disabled,Edit)

The Birthdate field (fake date) is a text field which is filled; however, the submit button does not enable.  This is a new problem that just started.  I have many application I use this same workflow and have never had a problem before now.

View solution in original post

As I said, there is a recent bug that is causing issues trying to read values from controls inside a form when you are outside the form.  If the buttons are outside the form then I suspect that is the problem you are having.  The first report I saw of this bug was about a week ago.  I'm personally not able to reproduce it, but Microsoft has.  For a test add a label to the form and see if you can see the value of the control you are setting disabled on.  I suspect it will be blank.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

View solution in original post

6 REPLIES 6
Pstork1
Dual Super User
Dual Super User

You should be using DataCardValue#.Text to specify the property you are testing rather than just the control. I suspect in the past it defaulted to the main property and things have been tightened.  Since IsBlank only works with strings you really should be specifying the actual value you are testing.

If(IsBlank(DataCardValue#.Text), Disabled, Edit)

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

I just tried the solution your recommended; however, I have have a Text box filled yet the submit button remains disabled.

I just tested and its still working for me.  Is the button inside or outside the form?  There is a known bug at the moment where values of controls inside forms don't show their values outside the form.  That might also cause the symptom you are seeing.  The workaround seems to be saving the value as a variable in the OnChange property of the control.  Then use the variable outside the form.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

This was working for me just a week ago, the problem just showed up.  I will include a couple of screen shots.  The button is outside the form.

dbirdRN_1-1643214763888.png

 

If(IsBlank(DataCardValue6.Text),Disabled,Edit)

The Birthdate field (fake date) is a text field which is filled; however, the submit button does not enable.  This is a new problem that just started.  I have many application I use this same workflow and have never had a problem before now.

As I said, there is a recent bug that is causing issues trying to read values from controls inside a form when you are outside the form.  If the buttons are outside the form then I suspect that is the problem you are having.  The first report I saw of this bug was about a week ago.  I'm personally not able to reproduce it, but Microsoft has.  For a test add a label to the form and see if you can see the value of the control you are setting disabled on.  I suspect it will be blank.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365 and PWR EduCon in Chicago
EduCon Chicago 2022

dbirdRN
New Member

By including the button inside the Form, this worked.  I have many forms with similar DisplayMode use, I hope the issues if fixed.  The current form is working and I have not checked if this affected any other forms.

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (4,583)