I need to pass option values to a Form so that the user can choose one of them (from a droplist). The values I get from a database and then store them in a dynamic variable (it doesn’t matter what type, i can adapt) so I can not put them directly into the form as ‘Values’, I need to treat them as if I don’t know what they are.
-I have tried passing an array with data binding but that didn’t work, the field just takes the whole array as the result.
-Also, I have tried with the ‘Custom’ option in Data with the following code:
‘for (var item in arrayministerio) {
values.push(item);
}’
but the Form can’t seem to access my array stored in Uipath.
Hi, yes i noticed that too (it’s strange but it’s not the principal problem right now, but if you find a way to solve it, please tell me). I wnto to know: what output do you get when you choose one option? Is it what you chose or the entire array? (By output i mean the json string you put in properties)
You can pass a List of String or Dictionary to populate the dropdown. You bind the collection to the dropdown control by using [ControlName]_dropdown. The [ControlName] of a dropdown is the Property Name within the Field Key tab. This would be referenced within the FormFieldsCollection property under Data Bindings within the Create Form activity.
Please take a look at the sample code which is built in 19.10.1.
Please do not wait with your suggestion. See here on how to provide a documentation feedback
You can open an article you think should contain this information and add it right away. Our documentation team will either approve it as is or build a new article around it if needed.
Hey there. Hope you are well, could you please tell me what you had to change? I’ve replicated what @joseph.yoon did and mine does not work. Maybe what you did will help mine work
Hi @loginerror
It is nice that users could contribute to documentation.
However it does not remove the liability from UiPath to provide quality documentation as quality documentation makes quality product.Community can hardly replace professional documentation writers simply because not having the in-depth knowledge of all the nuances of your product. And without quality documentation many features remain hidden which is pity.