How do I set a default value for a dynamic dropdown in UiPath forms?
I have an array or list of values say, A, B, C but I want the default value to be something say, G. How to achieve this?
Note: I already have the dynamic list login built, I just need help with setting the default value part.
pikorpa
(Piotr Kołakowski)
December 15, 2023, 10:43am
3
1 Like
I’m not sure what’s going wrong with my code.
I have passed the list as an in/out argument and then the string that goes as the default value as an in argument but, the control only shows a blank value and does not display any value from my list.
Please advise.
@atomic @pikorpa
pikorpa
(Piotr Kołakowski)
December 15, 2023, 2:44pm
5
you can set default value if you will add the custom default value:
here you can find code:
dropList.zip (3.4 KB)
3 Likes
I tried replicating the sample workflow given in your previous response and now the dropdown displays all the array values twice
I’ve got no clue what’s wrong.
I will check your new sample workflow and get back. Thank you!
system
(system)
Closed
December 22, 2023, 9:55am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.