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 III
Super User III

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 III
Super User III

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 III
Super User III

@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 III
Super User III

@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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,795)