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

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
EricLott
Level 10

Re: Not making button visible until field is filled in

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
Level 10

Re: Not making button visible until field is filled in

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)

 

Highlighted
slan2018
Level: Powered On

Re: Not making button visible until field is filled in

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

 
 

image.png

EricLott
Level 10

Re: Not making button visible until field is filled in

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

slan2018
Level: Powered On

Re: Not making button visible until field is filled in

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"?

EricLott
Level 10

Re: Not making button visible until field is filled in

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
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,160)