Creating forms is one of the simplest and most complicated things at the same time. A basic form consists of many different things happening, we have to retain the value, we have to keep watch of validation and we have to show error messages when something is invalid, this is on both the fields and on the entire form itself if we send a request off to the backend service.
So we're going to create a form using just the normal svelte features. Then we'll look into creating a form using the svelte forms lib.
Great course! Super clear and concise introduction to forms in Svelte!
short and sweet - nice ways of doing same things
I wish the Svelte Forms Lib site offered example code for other types of fields. I have a complicated form to add and I don't know if I know how to build it or if the Yup library will help validation for unusual fields not covered in the examples.
Will test the use of Forms Lib, but will have to do a depth reading of docs since this course was a bit too all over the place.