Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Master Vue.js with Vue School Premium

$25 / month

Vue.js Form Validation

Get access to this course, 17 others, and future Vue.js courses!

Start Learning

Already got an account? Log in

Conditional Validation

In this lesson, we'll learn how to apply a validation rule only if a condition is met.

In our case, we want to make sure the user leaves his email if he opts in to our newsletter.