Adapt ValidatedTextField to accept custom validation functions #1484
Labels
feature: Form Validation
p-feature: Project Details
role: Front End
size: 1pt
Can be done in 4-6 hours
Milestone
Overview
Part of #1481
The
react-hook-form
library has an option to pass custom validations. That's quite handy because we already have custom validations made previously from some of our existing pull requests.ValidatedTextField
needs to be adapted to use these custom validations, applying the validators properly while being looped over viaArray.map()
.Action Items
ValidatedTextField
to apply custom valdations into thevalidate
portion of theregister
function fromreact-hook-form
Resources
React Hook Form Register - search for the validate section
The text was updated successfully, but these errors were encountered: