illustration for Create forms in Svelte with Svelte Forms Lib
pro

Create forms in Svelte with Svelte Forms Lib

Instructor

Andrew Smith

8m closed-captioning
·
6 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.3
70
people completed
Published 4 years ago
|
Updated 3 years ago

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.

Learner Reviews

  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Great course! Super clear and concise introduction to forms in Svelte!

    Jon Meyers
    3 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    short and sweet - nice ways of doing same things

    adrian
    3 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    How will you use what you learned from this course?

    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.

    Greg Miller
    4 years ago
  • Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    How will you use what you learned from this course?

    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.

    gnadenthal
    4 years ago