Skip to content

Add validation and visibility on errors #22

@mikemajara

Description

@mikemajara

The library as is doesn't show some (if not all) errors.

Given Google manages that within the browser we need to parse that out of the form-raw.json and add it to the validation object available in react-hook-form to validate previous to submit.

I've been exploring how this can be done (check in my fork's master)

image

This would be the list for Short Answers, which would be the first thing I'd focus on

  • Number
    • gt
    • gte
    • lt
    • lte
    • eq
    • neq
    • between
    • not between
    • is number
    • whole number
  • Text
    • Contains
    • Doesn’t contain
    • Email
    • URL
  • Length
    • Max char count
    • Min char count
  • Regular Expression
    • Contains
    • Doesn’t contain
    • Matches
    • Doesn’t match
  • Long text
    • Length ☝️
    • Regular Expression ☝️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions