hx-include or form does not seem to respect validation rules #3175
Unanswered
markgarrigan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey, First example:
<form id="myform" hx-post="/register.html" hx-target="#content">
<input type="text" name="name" required>
</form>
<button form="myform">
Submit
</button> You will benefit from the default input validation happening as expected, and the form always doing a htmx request as well Second example:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Maybe I'm doing it wrong but neither of these work.
https://replit.com/@markgarrigan/hx-include-form
This doesn't respect the required attribute and also does not send the form data
This doesn't respect the required attribute but sends the form data
Is this intended, am I doing it wrong, or not intended?
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions