Forms can not output

I found that the variables in the form cannot pass the input information or selected values from my form into my workflow. The images are my process setting and dependency version.

Hi @bowen.zhang

Please check the Direction of the arguments in the Show Form activity. The form fields that need to send values back to the workflow should be configured as Out arguments, and the workflow variable should be mapped in the Value field.

Also, make sure the Key in the Show Form arguments exactly matches the form component/property name (for example, radio2).

After the form is submitted, you can then use the mapped workflow variable to get the selected value.

If it still doesn’t work, try creating a simple test form with one Radio/Dropdown field and verify whether its output is returned correctly.

Hi @bowen.zhang ,
You can try to fix this by doing these steps:

  1. Make sure the form component key is radio2.
  2. Map radio2 as Out and assign it to a String variable (for example: zbw).
  3. Populate radio2.Items with a valid collection before displaying the form.
  4. After the user submits the form, check the value of zbw using a Log Message activity.
  5. If the value is still empty, update/reinstall the UiPath.Form.Activities package and ensure the Forms package version is compatible with your Studio version.

Thanks

I found the issue, and it may be a bug. The component in my form is a radio button, and I have set a default option for it. However, when I run the program and the selected option is the default one, I still need to click it. Otherwise, the form output is null.

Based on this behavior, it seems that the default selection of the radio button is not working correctly.