patrickm
patrickm2mo ago

Resetting forms with f-partial-nav

Is there a predefined way to reset inputs in forms with deactivated client navigation ? I have a form input that sends a post request and receives a partial that is appended to a list. It works well, except the input keeps the old value even after the request is processed, I'd like it to reset. (I know I can easily do this in js, but there might be declarative way to do it that I didnt see in the docs)
2 Replies
marvinh.
marvinh.2mo ago
We don't have a declarative way to do that, but we should! That's a great idea! Can you open an issue for that on the Fresh Issue tracker on GitHub?
patrickm
patrickm2mo ago
Sure