bitter-machine-55943
05/06/2023, 3:30 PMbitter-machine-55943
05/06/2023, 3:31 PMgreat-cartoon-12331
05/06/2023, 3:48 PM<input type="date">
, no?flaky-energy-47039
05/06/2023, 3:51 PMgreat-cartoon-12331
05/06/2023, 3:53 PM<input>
tag min
and max
attributes. anyway, i agree, that doesn't make sense to make multiple network calls to validate one field at a time, but HTML form validation is pretty powerfulgreat-cartoon-12331
05/06/2023, 3:53 PMgreat-cartoon-12331
05/06/2023, 3:56 PMgreat-cartoon-12331
05/06/2023, 3:59 PMshy-zebra-22292
05/06/2023, 4:45 PMbitter-monkey-50309
05/06/2023, 4:57 PMbitter-monkey-50309
05/06/2023, 5:01 PMshy-zebra-22292
05/06/2023, 5:25 PMadventurous-ocean-93733
05/06/2023, 5:51 PMproud-librarian-99598
05/06/2023, 7:45 PMflaky-energy-47039
05/06/2023, 8:14 PMgreat-cartoon-12331
05/06/2023, 8:17 PMhx-
attributes, there are tons of things you can do to validate only a single input at a time. the first question i would always ask, what is the specific validation requirement for each of the inputs? and why is that requirement necessary?adamant-state-54102
05/06/2023, 9:40 PM<form hx-post="/contacts" on-success-trigger="newContact">
. And it would trigger the event on any 2xx response. Is there anything like this built in?mammoth-family-48524
05/06/2023, 10:33 PMmammoth-family-48524
05/06/2023, 11:14 PMmammoth-family-48524
05/06/2023, 11:15 PMmammoth-family-48524
05/06/2023, 11:16 PMhtml
<form
hx-patch="{% url 'team' team.id %}"
hx-success-refresh="true"
hx-error-target="#donation-amount-dialog"
hx-error-swap="innerHTML"
hx-error-block="base/home.html:team_budget_amount_form">
mysterious-toddler-20573
05/07/2023, 3:01 AMmysterious-toddler-20573
05/07/2023, 3:02 AMshy-zebra-22292
05/07/2023, 12:08 PMhigh-microphone-71328
05/07/2023, 8:20 PMgorgeous-airport-54386
05/07/2023, 8:54 PMmysterious-toddler-20573
05/07/2023, 9:01 PMmysterious-toddler-20573
05/07/2023, 9:01 PMmysterious-toddler-20573
05/07/2023, 9:02 PMPOST
should be good enough for anyone" guy made me laughgorgeous-airport-54386
05/07/2023, 9:03 PM