cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ajilakes
Advocate II
Advocate II

Dropdown Display

Good morning all,

 

I need some help with an issue I am having with my application. At the moment we have a dropdown box option Payment Type w/ choices of (Hourly and Weekly). 

 

What I am trying to do is have a Timesheet approver text input appear when the user selects hourly and when they select weekly it disappears. Would I have to use the Visible mode or Display mode?

 

Thanks, everyone!

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@Ajilakes 

If you are looking for the input to appear or disappear, then the Visible property is what you should focus on.

If you want to have it be enabled or disabled, then the DisplayMode property is what you should focus on.

 

In your case for the TextInputx control visible property, set to something like this:

   (dropDownControl.Selected.Value = "hourly")

This will evaluate to true or false based on the value selected in the dropdown control.

Be mindeful of case.  The text should match what you have as values in the list.

 

Also, some like to type it all out as such:

   If(dropDownControl.Selected.Value = "hourly", true, false)

But it's not all needed to type this as the first formula will do the same.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
RandyHayes
Super User
Super User

@Ajilakes 

If you are looking for the input to appear or disappear, then the Visible property is what you should focus on.

If you want to have it be enabled or disabled, then the DisplayMode property is what you should focus on.

 

In your case for the TextInputx control visible property, set to something like this:

   (dropDownControl.Selected.Value = "hourly")

This will evaluate to true or false based on the value selected in the dropdown control.

Be mindeful of case.  The text should match what you have as values in the list.

 

Also, some like to type it all out as such:

   If(dropDownControl.Selected.Value = "hourly", true, false)

But it's not all needed to type this as the first formula will do the same.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thank you for the help Randy! Really appreciate it 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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