The interactive form functionality is built with vanilla javascript and incorporated DRY principle. The features of the form validation include:
- All input fields are validated while typing.
- Some input fields response, depends on the display of another input field.
- When the form is submitted, the form is also validated in case of any error on the form.
- The form does not submit if the form is not filled at all.