Response Selects #2032
Unanswered
robertellam
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there! I have a quick question – is there an equivalent to the response-targets extension but tailored for hx-select?
Here's the scenario: when I submit a form and receive a bad request from the server, I want to select the form element from the response. Conversely, if the response is okay, I aim to select something different.
I've managed to achieve this using different response headers with HX-Retarget and HX-Reselect for validation errors. However, I'm curious if there's something akin to hx-target-errors, but specifically for hx-select-errors.
Any insights or assistance would be greatly appreciated!
Thanks,
Rob
Beta Was this translation helpful? Give feedback.
All reactions