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

Not making button visible until field is filled in

Hello,

I'm having some trouble with the visible properties of a button. I have a next button but I do not want it to be visible until my required field is filled in. I tried this with no success-

Visible=If('Sales Rep Name_DataCard1'="",false,true)

 

I think there is probably a very easy fix to this but I just don't know enough about it. 

 

I appreciate the help!!

1 ACCEPTED SOLUTION

Accepted Solutions

Instead of referencing 'Sales Rep Name_DataCard1', you need to reference the dropdown inside of it. Replace 'Sales Rep Name_DataCard1' with the name of the dropdown inside that card.

View solution in original post

5 REPLIES 5
EricLott
Super User
Super User

Set the Visible property of the button to this formula

 

If(IsBlank('Sales Rep Name_DataCard1'.Text),false,true)

 

You can also shorten it to this:

 

!IsBlank('Sales Rep Name_DataCard1'.Text)

 

Hi @EricLott ! I tried your formula but the system doesn't seem to be accepting it. Any thoughts?

 
 

image.png

Instead of referencing 'Sales Rep Name_DataCard1', you need to reference the dropdown inside of it. Replace 'Sales Rep Name_DataCard1' with the name of the dropdown inside that card.

View solution in original post

Worked!...

Except now I realized I have Input Text Placeholder in there, so this won't work for what I need. Any thoughts on how to make it say that it's visible when DataCardValue1 does not equal "Start Typing Sales Rep Last Name"?

Something along these lines...

 

DataCardValue1.SelectedText.YOURVALUE <> "Start Typing Sales Rep Last Name"

 

Just replace YOURVALUE with the value you are checking against. 

However, if that's just the Hint for that dropdown, try using SelectedText with my original solution.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (21,173)