How to call Alpine function in hx-on::after-request ? #2375
Unanswered
GeorgeFlorian
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
-
I have a form being submitted via a button:
I do the input validation using AlpineJS.
The issue is that I need to call the Alpine function
resetDelivery()
after the form was successfully submitted and I can't find a way of doing it.I've added the following code to the form tag, then to the button and I only get
Uncaught ReferenceError: resetDelivery is not defined
from thehx-on::after-request = "resetDelivery()"
Beta Was this translation helpful? Give feedback.
All reactions