cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

DropDown List Text Box

Hi there,

 

I am trying to make text boxes visible or hidden based on the value selected in the Drop Down List.


At the moment, I have a Drop Down List which is 1,2,3 and 3 boxes which will appear based on what is selected.

 

If 1 is selected, I would like just for 1 box to appear, and then if 2 is selected, I would like for 2 boxes to appear and so on.

 

Aaqib1_0-1606327234773.png

This is what I have set up against the Visible option but to no avail.

Aaqib1_1-1606327330714.png

 

Any help would be appreciated.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Microsoft
Microsoft

Hi @Aaqib1 ,

 

Assuming I'm reading this correctly, and you're actually going to be using "1", "2", "3" in your dropdown, then you can do this for each text box according to it's relevant 'number'?

 

TextBox1 Visible: Value(Dropdown1.Selected.Value)>=1

TextBox2 Visible: Value(Dropdown1.Selected.Value)>=2

TextBox3 Visible: Value(Dropdown1.Selected.Value)>=3

 

Hope this helps,

RT

View solution in original post

Super User II
Super User II

Hi @Aaqib1 

 

Use a gallery and set Items property to:

Sequence(Value(DropDown1.Selected.Value))

and inside Gallery insert your text box (you don't need to set Visible property to this).

To access your TextInput value for each row, you can use Gallery.AllItems property.

ezgif.com-gif-maker (2).gif

Also if your dropdown use number as integer, you can set items to [1,2,3,4,5] and in this case formula will be:

Sequence(DropDown1.Selected.Value)

 

Hope it helps !

View solution in original post

2 REPLIES 2
Microsoft
Microsoft

Hi @Aaqib1 ,

 

Assuming I'm reading this correctly, and you're actually going to be using "1", "2", "3" in your dropdown, then you can do this for each text box according to it's relevant 'number'?

 

TextBox1 Visible: Value(Dropdown1.Selected.Value)>=1

TextBox2 Visible: Value(Dropdown1.Selected.Value)>=2

TextBox3 Visible: Value(Dropdown1.Selected.Value)>=3

 

Hope this helps,

RT

View solution in original post

Super User II
Super User II

Hi @Aaqib1 

 

Use a gallery and set Items property to:

Sequence(Value(DropDown1.Selected.Value))

and inside Gallery insert your text box (you don't need to set Visible property to this).

To access your TextInput value for each row, you can use Gallery.AllItems property.

ezgif.com-gif-maker (2).gif

Also if your dropdown use number as integer, you can set items to [1,2,3,4,5] and in this case formula will be:

Sequence(DropDown1.Selected.Value)

 

Hope it helps !

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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