Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form validation #78

Closed
6 tasks done
sarahyjja opened this issue Sep 12, 2019 · 0 comments
Closed
6 tasks done

Form validation #78

sarahyjja opened this issue Sep 12, 2019 · 0 comments
Assignees

Comments

@sarahyjja
Copy link
Collaborator

sarahyjja commented Sep 12, 2019

Error handling :

  • Should display a message if info are incomplete or wrong

  • See the CSS

  • Add alert message to pop up when user enters wrong postcode format (regex)

  • Postcode validation requirement  #25 => Check if the postcode exist otherwise the API can't return any route

  • You can pass a case insensitive flag to regex so you don't have to parse to upper case

    if (!postcode.value.toUpperCase().match(regex)) {

  • Give alert message if date/time is in the past

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants