"Get Form Values" unable to find form

I am sending a List of string from my main to NewForm.
This enables me to have a dynamic drop down list.
Now I need to know what value is returned from the form (what the user selected)

But the Get For



m Value activity is failing:
Get Form Values: The form was not found. Please make sure that you have shown the form before and that the Instance Name you’re using is correct (FormNotFound)

why can’t it see the form?
How else can i get the user input?

Hi,

Make sure that the form has been shown to the user and that you are using the correct instance name. You can also try using the Wait for Form to Close activity to make sure that the form is not closed before you try to get the values from it.
and form is should also be in the same workflow as the Get Form Values activity.

Cheers @brandon_lee

ui path forms.zip (2.3 KB)

Hey thank you for the advice, but I don’t think any of things you mentioned is applying to me… perhaps I’m wrong. I’ve attached my main workflow and my form. If you could take a look I’d really appreciate it

@brandon_lee

Did you give an instance name to the form?

Try givign an instance name in the show forms and use the same name in get form values as well and check

Cheers

no luck, both instances match


@brandon_lee

Try to set the same field key value again…without _list in show form activity and change the direction to out and check what is getting returned

Or change the actual list argument value to in/out and check if the list is getting the data of only selected once it is submitted

As we can see from screenshot the direction is set only to in

Cheers

I have a same problem.
Do you have any ideas?

Got the same kind of issue in a slightly different context (trigger). What I found is that if you choose the Submit action in the form when clicking on a button then you get nothing back in the Get Form Values activity. It’s like the form is closed.

To solve the issue, I modified the Submit button on the form and selected Event with an event name (SubmitClick in my case).

I then get the values in the trigger (added on the form with Create Trigger).

I then closed the form in the trigger. Not sure that’s the easiest way but worked for me. Hope this helps.

OMG, this way of working with forms is really clumsy, not to mention the lack of proper documentation / tutorials. I’m having a hard time for merely arranging 3 buttons and get which one did the user click.

Hi guys,
You need to do two things in order to get the values from a Form.

1st : Don’t use a “Submit” Action on the form that you are showing. It’ll close the form before your trigger has started and thus the possibility to get the values using the get values activity. So just use a dummy Action “event” (with no Button Event). It’ll keep the form open and when you have clicked on it, the trigger for that button will start.
Then, AFTER you have get the values, use a CloseForm activity

2nd : Use a unique “instanceName” that’ll identify your form. Put it on the showForm, on the Trigger and on the GetValues activities.
The instanceName should be a variable at global (not main but global) level and has a unique value (you can even use a guid if you want).

Hope it’ll help you guys.

Regards
Bilal Diallo