Form submission issue
Hey, trying to figure out some htmx/form problem.
When I submit the form, the page does a full refresh, the input values are appended to URL, and my POST request is not hit on my server. Anyone have ideas on how to resolve/troubleshoot?
Curl works on expected route, the
hx-post
attribute in devtools looks correctSolution:Jump to solution
are you sure htmx (from script tag) is loaded on your page?
it would be responible for stopping the default behavior...
2 Replies
Solution
are you sure htmx (from script tag) is loaded on your page?
it would be responible for stopping the default behavior
No, well yes I am sure
Now, that you say that and I'm thinking about it. I forgot this is not on the home page where I added it. Need to move it to a base layout that everything can use