department-of-veterans-affairs / va-forms-system-core

VA Forms System Core will be a React library hosted in NPM that will allow engineers and designers to easily interact with Forms inside of vets-website.
https://department-of-veterans-affairs.github.io/va-forms-system-core/
6 stars 4 forks source link

#570 - Formik UI values #594

Closed larsmaxwell closed 2 years ago

larsmaxwell commented 2 years ago

Description

When the fields are not in schema formik doesn't register the field in initial values. Sometimes, there are data points (previously used in UI schema) that need to be used for the sole purpose of showing and hiding different fields. When these fields are not registered, formik doesn't hook into any validation functions for it. This needs to be added so formik registers it as an initial value.

Original issue(s)

department-of-veterans-affairs/va-forms-system-core#570

Testing done

Screenshots

Definition of done

va-vsp-bot commented 2 years ago

:tada: This PR is included in version 1.5.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: