cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Multiple textboxes use as Dropdown else where

I have a gallery which has a repeating table to collect few text values.

 

RepTable.png

 

Now, i would like to use these values in a dropdown and use it in various places in the same app. Can someone please help me with the logic for the same?

5 REPLIES 5
rebeccas
Community Champion
Community Champion

You could achieve this by creating a collection that stores those selections and then refer back to that collection elsewhere in the app. 

 

Let me know if you need a little more help on that and I have a few apps I can pull out what I used to acheive. 

Anonymous
Not applicable

I am newby and learning while i buid it. Pls do share few so that i can get this done and learn on the go.

 

Thank you rebecca.

Anonymous
Not applicable

Pls help.

v-monli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Are these text that you are trying to use as the options of a dropdown control inside multiple textinput controls? If so, then please follow below steps to achieve this:

1. Insert a button control, set its OnSelect property to:

ClearCollect(C1,{Options:TextInput1.Text},{Options:TextInput2.Text})

TextInput1 and 2 are the textinput controls' names.

 

2. Insert a dropdown control. Set below formula in the Items property of the dropdown control:

C1.Options

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks Mona. The number of textboxes may increase. They are not limited to two. Pls advise how to tweek the code?

Helpful resources

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