You are viewing limited content. For full access, please sign in.

Question

Question

Redirect with different form

asked on December 7, 2016 Show version history

So we have a Business Process that we want to redirect to another form.  This works fine using the redirect in the start event.  However during the Forms process we switch to a different Form if certain items are selected.   The redirect does not work if coming from that Form.  Is the redirect option tied to just the starting Form?  Shouldnt the re-direct option be enforced no matter what Form you submit as long as you reach the end of the business process?

Form A is the starting form.

Form B is the request form (very similar to A with a few other things).

User fills out starting Form A and select No to add additional requests.  Submit works, workflow runs, redirect happens.

User fills out starting Form A and select Yes to add additinal requests.  Submit works, workflow runs, Forms sends user to Form B.  User submits Form B, redirect does not happen.

 

Edit*  I did just try to add the other Form into a subprocess too.  Basically Form B is in the subprocess and they keep looking back to Form B if they want to continue to add items.  Once they choose No to adding items the sub process ends and kicks back to the main process and then that ends.  The re-direct still does not work.  

 

Edit 2 - I guess to put it another way, is there a way to do a re-direct activity that is not part of the starting event?  Another example is we have error check branches in Forms.  If the workflow fails, we return an error message to the Form and a gateway sends to an error Form.  We are being re-directed right away before the workflow even finishes.  Ideally the redirect would be its own event or better yet, tied to the end event.  Then no matter where the forms process goes, if it gets to its end, we re-direct the user.

 

Thanks

 

 

 

1 0

Replies

replied on December 21, 2016 Show version history

Just thought I would share the solution we have.

After testing it seems that the re-direct happens right after the submit.  We tried to populate a variable on a Form with a workflow but that actually did not work since the re-direct reads the field before the workflow starts.

So our solution was to break out our two forms into two different processes.  What we have is a benefit application form.  That application can hold multiple "items".  So you can apply for a Disaster Benefit.  That benefit can hold multiple items (roof repair, window repair, etc).

The original design was one Forms processes with two forms.  Form 1 was the Application.  Form 2 was the "add item" form.  At the bottom of Form 1 we had a radio button that asks if they want to add additional items.  If yes, go to Form 2.  If no, End.  By end, we mean re-direct back to where the users can from (another form complete with variables).  If they go to Form 2, they fill it out and are asked the same question again:  If yes, clear Form 2 and go back to it.  If no, end.  

The issue is the re-direct does not work once you switch to Form 2 in the process.

So, Form 1 and Form 2 are now both separate business process.  We added a field to each form called re-direct.  Whe then used javascript to populate that redirect field with a form URL (with parameters) depending on what they clicked.  If yes, re-direct populated with http://servername/forms/form2?....  If no, re-direct populated with http://servername/forms/originalform?...

The redirect in the Forms Processes Diagram is just set to the re-direct variable on the form.  Since that field is populated by javascript before the submit, the Forms redirect sees it.

Not sure if that all made sense but thought I'd share if others run into this.

 

2 0
replied on December 8, 2016

If you are referring to the Redirect to Website option, it is only available from the initial submission of the form. I believe that is why Laserfiche only made it configurable when editing the Start Event in the Process Diagram.

0 0
replied on December 9, 2016

Thanks Blake, but this happens with the Thank You message too.

Wouldn't this be a bug of some kind?  

So the Thank you Page or the redirect option do not work if you switch to various forms during the Forms process.  Seems to be very limited.

0 0
replied on December 9, 2016

Correct Chris, but the Thank You Message is configured from the Start Event.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.