Replies: 3 comments 1 reply
-
You can use the message store system for that: https://formkit.com/essentials/architecture#message-store |
Beta Was this translation helpful? Give feedback.
-
@pano9000 you’re right though that success messages as a first-class feature is something we should explore more. |
Beta Was this translation helpful? Give feedback.
-
so I just got to spend some time with it and while it definitely can be used to achieve what I want, it requires a bit of extra work: So I feel like something like @justin-schroeder thank you for acknowledging the idea! :-) |
Beta Was this translation helpful? Give feedback.
-
Hi All,
quick idea, because I did not find anything similar in the FormKit docs (or am I missing something obvious here?):
I feel like it would be useful to also have a method similar to the
node.setErrors
one, but one that is used to set "Success Messages", received from the backend (or some other source), e.g. "The Form has been submitted successfuly."This could then be used together with FormKitMessages, to display that message, after the Form was successfully submitted.
It feels wrong to use node.setErrors for this currently.
Beta Was this translation helpful? Give feedback.
All reactions