tobimori / kirby-dreamform

✨ DreamForm is an opiniated form builder plugin for Kirby CMS that makes forms work like magic
https://plugins.andkindness.com/dreamform
41 stars 5 forks source link

Edge cases when using multiple forms on the same page #51

Closed animaux closed 4 months ago

animaux commented 4 months ago

If I am not missing the obvious and that’s already possible — it would be nice if the page scrolls to the form and/or the error-/success-messages after submit. Otherwise it’s easy to miss submission errors (on longer pages where the form is further down).

Obviously this would be easy with a #-link, but I have no idea how to implement this, and hardcoding an URL is not an option.

tobimori commented 4 months ago

Please use HTMX or API submissions for this.

animaux commented 4 months ago

:(

tobimori commented 4 months ago

Right now, I don't really know how to solve this technically and capture all edge cases. (Mostly related on how to solve this without a breaking change)

I will have to investigate and make a clear decision on what is supported and what not.

animaux commented 4 months ago

Thanks!

tobimori commented 4 months ago

I implemented this in the latest commit.