function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
craskulineczcraskulinecz 

Error when passing variables to flow and using validation rules

I'm having an issue with Visual Workflow in that when I pass variables to the flow from a link, if the form has fields that have a validation rule on them, if that rule gets triggered by not filling in the input, when the form gets reloaded automatically to show the error messages, the full URL string is replaced by a generic string and doesn't pass in the variables the second time.

 

So for example, if I have the following URL on a force.com site:

http://test.force.com/test/vftestflow?v1=abc&v2=123

 

There are validation rules on the Name and email fields on the form.

 

When a person submits the form without filling in their email address the error message displays but the URL is now:

http://test.force.com/test/vftestflow

 

without any of the URL variables.

 

If they then fill in the form correctly and then submit the form, it now says:

 

Authorization Required

You must first log in or register before accessing this page. If you have forgotten your password, click Forgot Password to reset it.

 

Any Ideas on how to fix this?

 

Thanks,

 

Chris

 

RajaramRajaram
What does the flow do when the variables are set vs not?
The error may be a red herring i feel. THere is something else going on.