Form Widget → Redirect → Summary Widget

2025/09/17 8:26 AM

How would you handle a situation where you have a form widget that displays a form on one page, and after submission, the user is redirected to another page with a different widget that should show a summary of the submitted data?

The main challenge is figuring out how to pass the submitted form data across the redirect so that it’s still available on the next page. How would you implement this in XbyK? Have any of you actually implemented this?

I’m struggling to find a solution that doesn’t feel like a workaround. My real use case is more complex, but it can be simplified to the example above. I did come up with a working solution, but I’m not happy with it, it feels quite hacky. It involves using async event handlers, generating a custom form submission GUID, passing that GUID through the response headers of the FormSubmit request, intercepting the HTTP request on the client side, storing the GUID in session storage so it survives the redirect, and then, on the target page, reading the GUID from session storage and making a HTTP request to a custom controller to fetch and render the submitted form data. Pretty messy.

Tags:
Form Builder

Answers

To response this discussion, you have to login first.