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.

View solution in original post

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.
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.
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,891)