cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Courtney
Level: Powered On

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
Microsoft v-siky-msft
Microsoft

Re: Visible image until text entered

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

Re: Visible image until text entered

@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."

Microsoft v-siky-msft
Microsoft

Re: Visible image until text entered

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 

Courtney
Level: Powered On

Re: Visible image until text entered

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. 

Microsoft v-siky-msft
Microsoft

Re: Visible image until text entered

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

Courtney
Level: Powered On

Re: Visible image until text entered

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

LeonSig
Level: Powered On

Re: Visible image until text entered

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!

Courtney
Level: Powered On

Re: Visible image until text entered

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. 

 

 

 

LeonSig
Level: Powered On

Re: Visible image until text entered

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

 

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

Microsoft v-siky-msft
Microsoft

Re: Visible image until text entered

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,083)