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

Showing X amount of Textinputs on X value in Dropdown Box

Hello everyone,

 

Im struggling to google my self out of this one, but is it possible to show X amount of textinputs based on a number value choosen in a dropdownbox ?

 

ex.

If(dropdownbox1 = "1", show textinput1

If(dropdownbox1 = "2", show textinput 1 and textinput2

If(dropdownbox1 = "3", show textinput 1, textinput2 and textinput3

and so on...

 

image.png

 

Anyway of accomplishing that in PowerApps ?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerAddict
Super User II
Super User II

Hi @Rado81, do you have a max count? I believe you do since you have a dropdown of numbers. If so, you could have that many text inputs on the screen and have their visibility set to be dependent on the value selected in the dropdown. For example, lets the max count is 3, visibility of the first dropdown could be If(Dropdown.Selected.Value = 1 || Dropdown.Selected.Value = 2 || Dropdown.Selected.Value = 3, true, false).

Similarly, for the 2nd text input, the visibility could be
If(Dropdown.Selected.Value = 2 || Dropdown.Selected.Value = 3, true, false).

And for the 3rd, it would be,
If(Dropdown.Selected.Valur = 3, true, false)

Please let me know if this helps and mark this as the solution. Thanks!

View solution in original post

3 REPLIES 3
PowerAddict
Super User II
Super User II

Hi @Rado81, do you have a max count? I believe you do since you have a dropdown of numbers. If so, you could have that many text inputs on the screen and have their visibility set to be dependent on the value selected in the dropdown. For example, lets the max count is 3, visibility of the first dropdown could be If(Dropdown.Selected.Value = 1 || Dropdown.Selected.Value = 2 || Dropdown.Selected.Value = 3, true, false).

Similarly, for the 2nd text input, the visibility could be
If(Dropdown.Selected.Value = 2 || Dropdown.Selected.Value = 3, true, false).

And for the 3rd, it would be,
If(Dropdown.Selected.Valur = 3, true, false)

Please let me know if this helps and mark this as the solution. Thanks!

View solution in original post

Hi @PowerAddict ,

 

Thanks for the quick reply, I should have spotted that option.

 

Thank you very much.

 

 

Hi @Rado81,

No worries, glad I could help!

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (28,527)