Knotx / knotx-forms

Forms supports forms submissions and multi-step forms flows

Home Page:http://knotx.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Action Knot] Form submission redirection strategy

tomaszmichalak opened this issue · comments

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).