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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (66,022)