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?
Solved! Go to Solution.
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.
Sik
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."
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?
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.
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.
Sik
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
203 | |
183 | |
70 | |
43 | |
34 |
User | Count |
---|---|
339 | |
266 | |
116 | |
66 | |
66 |