Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 1.68 KB

README.md

File metadata and controls

39 lines (35 loc) · 1.68 KB

Cognito Forms Technical Exercise

Overview

You are tasked with completing the implementation of the SignUp.vue component and associated code modules. Below you will find the requirements for the page.

User Interface Requirements

  1. The name input should be automatically focused when loading the page
  2. Fields should show an error when any of the validation rules are violated
  3. Errors should not appear until one of the following occurs:
    • a blur event has occurred for the associated field
    • the "sign up" button has been clicked
  4. Only one error message should appear for a field at any given time
  5. The "sign up" button should not submit the form if there are errors
  6. If a prefilledEmail is provided, that should be the initial value of the email input

Validation Rules

  • name
    • required
    • must be at least 3 characters
    • must consist of only letters and whitespace
  • email (see src/validators.js)
    • required
    • must be formatted as an email address
    • the domain must consist of at least 2 parts
  • password (see src/validators.js)
    • required
    • must be at least 11 characters
    • must contain at least one of each of the following character groups:
      • lower case letters
      • upper case letters
      • numbers
      • special characters
  • confirm password field must match the value of the password field

Codesandbox Setup

You can open this repository in CodeSandbox and click the Fork button in the top right corner. From there you can edit files and see how your output is progressing.