svelte-forms-lib icon indicating copy to clipboard operation
svelte-forms-lib copied to clipboard

set errors when using helpers

Open till opened this issue 2 years ago • 1 comments

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?

till avatar Mar 10 '23 13:03 till

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()

jgreywolf avatar Jan 16 '24 17:01 jgreywolf