Drop Down - NOT passing value from AC

Hi

I am currently trying to get the output of the dropdown value in AC centre that I have selected but the output is always null,

image

This is the form details:

The property name is BusinessChoice1 and this is case-sensitive and must exactly match the key you use. Check the key and use this to access the dropdown value in your code.
FormFieldsOutput("BusinessChoice1").ToString

Cheers

Thank you,

I updated the form data to property name BusinessChoice

It gives an error there. Please see

Can you show the error by hoovering on that red mark.

Cheers

I see for this open the Data Manager in UiPath Studio (bottom-left panel) then click + to add a new variable: Name: FormFieldsOutput and type: Dictionary<String, Object>

Cheers

Thats the issue I am getting now

image
This what I did that caused form error

Inside Create Form Task the In/Out dictionary key should be blank or have a default value if you want one. Do not put FormFieldsOutput() inside the dictionary itself. And after the Form Task Completes, add an Assign activity in the workflow after the form is submitted.
Assign like this:
BusinessChoice = FormFieldsOutput(“BusinessChoice”).ToString

Here BusinessChoice is your string variable that stores the selected dropdown value.

Cheers

FormFieldsOutput - please cab you kindly explain where do we put this, Do we make a field key the rest and assign it dictinary type

Select your Create Form Task activity then in the Properties panel (right side) you’ll find the Output → FormFieldsOutput property, there create a new variable called FormFieldsOutput. And its type must be:

Dictionary<String, Object>

And after the form task completes, you can read values from this variable:
FormFieldsOutput(“BusinessChoice”).ToString

Cheers

@Aki1111

when you use create form task…the values are returned by get form tasks or wait and resume

you cannot get in the same activity..as it only creates

what you are trying is the old local forms way

cheers

Thanks everyone,

The issue was I was supposed to arguments when I need to pass my result out, I had the creat form task in a invokeable workflow assigning the values out of the form to variables, this caused an issue so I used arguments instead.

1 Like