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

@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.
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 III
Super User III

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

Thank you for the help Randy! Really appreciate it 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,413)