SJSF V2: getting an updated value from a form every time there's a change #90
Answered
by
x0k
sebastianhaberey
asked this question in
Q&A
-
Hi, can anybody give me an example how I would attach a listener to the form (V2) so that I get notified any time the user changes a value? Cheers! |
Beta Was this translation helpful? Give feedback.
Answered by
x0k
Apr 3, 2025
Replies: 1 comment 1 reply
-
const form = createForm({ ... })
$effect(() => {
form.value
}) Mentioned in form state. if you are looking for direct access to the form state ( (form.context as FormInternalContext<typeof validator>).value |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sebastianhaberey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mentioned in form state.
if you are looking for direct access to the form state (
formValue
from v1), it has been removed from the public API, but is still available