Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-Step Form Navigation and client-side init Cmd Behavior #496

Open
shahnhogan opened this issue Nov 14, 2024 · 0 comments
Open

Multi-Step Form Navigation and client-side init Cmd Behavior #496

shahnhogan opened this issue Nov 14, 2024 · 0 comments

Comments

@shahnhogan
Copy link
Contributor

Firstly, thank you for the amazing work on elm-pages; it has been instrumental in our projects. I’m currently implementing a multi-step form that spans multiple routes, using the GPR (Get, Post, Redirect) pattern.

However, I’ve encountered two issues:

Back Button Functionality
The back button doesn’t behave as expected when navigating between the steps. It goes back to the page before the multi-step form was started, rather than to the previous step. I have a working SSCCE available at https://github.com/shahnhogan/elm-pages-multi-step-form-gpr-pattern-sscce that demonstrates the issue. Interestingly, if I disable JavaScript, the back button works as expected.

Client-side init Cmd
I assumed this would trigger each time a route redirect happens, but this doesn't seem to be the case. This behavior is important for our client-side event tagging to inform our system when a user completes steps 1, 2, or 3.

Would it be possible to look into these behaviors or clarify if there are workarounds available?

Thank you so much for taking the time to review this and for all your hard work on this excellent tool! I appreciate any insights or guidance you could provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant