How to make drop-down with list?

Hi, good morning.

I have a question about the options of the input dialog.

I have now saved the elements of drop down on the web site in the list through find children and for loop + get attribute.

I am trying to change the list saved on web site to drop down in uipath through input dialog.

{String.Join(Environment.NewLine, result_list_1)}
When I try to make a drop down using the code above, all the elements come out on one button.

At first, there are only 3 elements, but next time, there are over 100 elements, so I donā€™t think itā€™ll be possible to index one by one.
{result_list_1(0), result_list_1(1) ā€¦}

Please give me some advice on what to do.
thank you for read

ģŗ”ģ²˜

Hello @bin0901200055

I am attaching a .xaml file. This might help you solve your problem.Main.xaml (4.4 KB)

Thanks,
Bhushan

Thank you for replying.

Iā€™m trying to bring up the drop box elements on the web and make them look exactly the same on uipath.

Find Children ā†’ Get Attribute (ā€œaanameā€) ā†’ Add To Collection
(recall drop box elements and save them to the list)
And I am checking the number of drop down through list.Count().

I want to enter the number of input dialog options.
(I canā€™t enter more than 100 drop box elements on the web one by one.)

I think using an ā€˜array of stringā€™ argument might help. So that each string can be one option.

In the options property, if you pass a list or a array of string, the input dialog box will take each string as one option.

Thanks,
Bhushan

1 Like

Array was the key!
Thank you. Have a good day.

Hi @bin0901200055,

Suggesting alternativesā€¦ is this what you need?


Cheers :beers: @bin0901200055

also, great Solution! thank you so much

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.