svelte-forms-lib
svelte-forms-lib copied to clipboard
set errors when using helpers
I am building a form similar to this (using the helper components): https://svelte-forms-lib-sapper-docs.vercel.app/helpers
My validation works pre submit, however, when I make my request to save my data and encounter an error, I am not sure how to write to the $errors store. Or how to even subscribe to it when I don't use createForm(). Would anyone have an example of how that is done?
I am looking for similar information. I want to be able to have my submit button disabled until isvalid is true - but I dont seem to be able to access it unless I use createForm()