Uipath forms: prefill TextBoxes based on Dropdown option

Hello everyone,

I have the following use case: I need to create a form where I need to prefill some text boxes based on the user choice on dropdown. If the user choose Choice1 then fill TextBox1, TextBox2…

The information should inflow as arguments from a DataTable. How can this be achieve in UiPath forms?

Hi @DELautomation, welcome to the Community.

There is a property called OnValueChanged in the dropdown list to trigger a workflow that populates the text boxes based on the selected value.

In the Data section of the form, create a new variable of type dataTable that contains the data you want to populate the text boxes with. In the OnValueChanged property, add a trigger to invoke the workflow to populate the text boxes.

The following resource might help you with your requirements:

Hope this helps,
Best Regards.

1 Like

Hello, Thank you very much for video. Very useful!
I followed your steps and instead of 2 dropdowns I used text boxes, but somehow the values from multiple assign do not pass back to the the form. Any clue why?

@DELautomation

Can you please double check the directions of the arguments that you are passing in or out into into the workflow? Also, do use log messages to verify if the data is being encorporated into the variable before passing the same.

Hope this helps,
Best Regards.

1 Like

Thanks again, the variables scope caused the issue.

1 Like

@DELautomation

Glad that you were able to sort this out.

Happy Automation!

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