cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

Visible image until text entered

Hi everyone, 

 

I have an image that I only want to be visible unless 2 text entry boxes are filled in. 

 

On the image Visible property I have this so far I

 

If(!Not(TextEntrya.Text,"",&(TextEntryb.Text,"",true,false)) but its not working. 

 

Any idea on a fix?

1 ACCEPTED SOLUTION

Accepted Solutions

Sorry, I misunderstand your meaning, go through a wrong way.

Anyway, Please try this:

If(!IsBlank(TextEntrya.Text) && !IsBlank(TextEntryb.Text),false,true)

Only two text boxes are filled, the image will be invisible.

Snipaste_2019-12-20_09-53-57.pngSnipaste_2019-12-20_09-53-51.pngSnipaste_2019-12-20_09-53-37.png

Sik

View solution in original post

10 REPLIES 10
Super User III
Super User III

@Courtney 

Put this code in the Visible property of your image control.  There is no need for any IF statement because the formula already evaluates to True/False.

 

!IsBlank(TextEntrya.Text) && !IsBlank(TextEntryb.Text)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Community Support
Community Support

Hi @Courtney ,

 

Use IsBlank function to check if the text box is entered.

So set !IsBlank(TextEntrya.Text) && !IsBlank(TextEntryb.Text) to Visible property of image.

Best regards,

Sik 

I used IsBlank instead of !IsBlank and it now will not be visible until there is text entered. I need this to happen only when both next boxes are filled in instead of one or the bother. 

Why not trying !IsBlank? It will judge if two textboxes are all not blank, Only both of two are filled, it returns true, and make image visible.

Sik

I tried this and the image visibility remains false. Can you test it on your end if possible?

Anonymous
Not applicable

Hey @Courtney ,

 

You could try:

 

If(

And(

IsBlank(TextEntryA), IsBlank(TextEntryB)

),

true,

false

)

 

This should check that both Text Entry fields are blank and if they are, the image should be displayed. If both fields are filled in, the image should be hidden.

 

I'm using something similar to disable a button until 4 text input fields are filled in. So I think it should work in your case too.

 

Hope this helps!

Here is the formula I am using from your instruction:

If(And(IsBlank(TextEntryA),(TextEntryB)),true,false)

But I seem to get the error on it. 

 

I have also tried:

If(And(IsBlank(TextEntryA)&&(TextEntryB)),true,false)

No error, but the image is never visible in this case.

 

Lastly I have tried:

If(And(IsBlank(TextEntryA)&&IsBlank(TextEntryB)),true,false)

No error, but the image will become false when either entry is filled when i need it become false only when both are filled in. Not one or the other. 

 

 

 

Anonymous
Not applicable

You need IsBlank before both text entry field names so it would be

 

If(And(IsBlank(TextEntryA),IsBlank(TextEntryB)),true,false)

Sorry, I misunderstand your meaning, go through a wrong way.

Anyway, Please try this:

If(!IsBlank(TextEntrya.Text) && !IsBlank(TextEntryb.Text),false,true)

Only two text boxes are filled, the image will be invisible.

Snipaste_2019-12-20_09-53-57.pngSnipaste_2019-12-20_09-53-51.pngSnipaste_2019-12-20_09-53-37.png

Sik

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (4,107)