We begin by creating the elements of the form.
These three fields need to be text fields.
The sender of the emails should be the address filled out by the user.
The name field is valid if it isn't filled out...
...or it contains a space and has a length greater than four.
The email field is valid if it isn't filled out...
...or it contains an at sign.
This field is only visible if there is an employer.
This button is only enabled if these fields are valid...
...and have been filled out.
The user may only proceed if the terms have been accepted.
Add a field to the emails with the current date.
It is hidden from the user.
All done, let's take a look at a preview of the app!
The fields are red as long as the input is invalid.
Thanks for watching!