Knotx / knotx-forms

Forms supports forms submissions and multi-step forms flows
http://knotx.io
Apache License 2.0
0 stars 4 forks source link

[Action Knot] Form submission redirection strategy #15

Open tomaszmichalak opened 7 years ago

tomaszmichalak commented 7 years ago

Current

Action Knot calls Adapter with submitted form data. Adapter process form data and returns JSON model with signal success. In form definition we have information that we expect to stay on the same page for success signal (_self value). Action Knot does not set new location header and set "next" transition for Knots Routing. It means that user is not redirected. This leads to problems with page refreshing.

Proposal

We should be redirected user to current page for success signal. We need to design system should behave for form validation errors. How should we pass information from invoked Adapter to next GET request (redirect).