You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have a field whose values can be either [a,b,c,d,e]
would like to add validation constraint to another field as
if === a ? length should be 5
if === b ? length should be 10
if === c ? length should be 15
and so on.
in yup i am aware that this can be done using .test function. does this library support .test creation? if so any example would be appreciated.
if not then can you please point me in the right direction to add this custom functionality?
any help would be apprecitated, thanks.
The text was updated successfully, but these errors were encountered:
i have a field whose values can be either [a,b,c,d,e]
would like to add validation constraint to another field as
if === a ? length should be 5
if === b ? length should be 10
if === c ? length should be 15
and so on.
in yup i am aware that this can be done using .test function. does this library support .test creation? if so any example would be appreciated.
if not then can you please point me in the right direction to add this custom functionality?
any help would be apprecitated, thanks.
The text was updated successfully, but these errors were encountered: