cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Show/hide button if one or more fields are datacards are blank

Hello,
I am attempting to show or hide a submit button based on the condition of two fields not being blank/populated.
If both fields are populated then show the Submit button else hide the submit button.

Chrislond58_0-1621341715275.png

The formula I have attempted doesnt seem to work.
Thanks for the help!

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User
Super User

Instead of Or use And;

Just put;

!IsBlank(DataCardValue1) && !IsBlank(DataCardValue2)

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

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.

View solution in original post

3 REPLIES 3
eka24
Super User
Super User

Instead of Or use And;

Just put;

!IsBlank(DataCardValue1) && !IsBlank(DataCardValue2)

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

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.

RandyHayes
Super User
Super User

@Anonymous 

You will need to specify the actual property that you want to determine is blank and not just the name of the controls as you have.  So, assuming they are both Text input controls, then your formula should be the following on the Visible property.

!IsBlank(DataCardValue1.Text) && !IsBlank(DataCardValue2.Text)

You don't need the If or the true false part - it is redundant. 

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
RandyHayes
Super User
Super User

@Anonymous 

Oops - cross post with @eka24 .  His formula is correct, except you should be specifying the property (i.e. Text) of the control to determine IsBlank.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,948)