question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Validating nested field based on another nested field

See original GitHub issue

Hi! I have a problem validating one nested field value based on another one (I’m using separated declarations).

For example, lets consider following setup:

const fields = [
  // ...
  'legalEntitiesInfo[].leaveBeginAt',
  'legalEntitiesInfo[].leaveEndAt',
];

leaveBeginAt and leaveEndAt are date stings, so leaveEndAt must be after or equal leaveBeginAt.

How can I declare related and validate (VJF) properties for a form constructor in this case?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
il-tmfvcommented, Mar 28, 2017

If it is not enough I can try to reproduce it in a separate project lately.

0reactions
foxhound87commented, Mar 31, 2017

@shnarasi see answer in #249

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validate data within nested structures - Flowfinity
Flowfinity lets you use nested fields for items that should to be grouped together such as lists. Learn how to validate data in...
Read more >
Yup validation based on nested object within nested object
I found the solution doing the following: const validationSchema = yup.object({ created: yup.object().shape({ mapping: yup.object().shape({ ...
Read more >
Validate nested dependent fields #1036 - jquense/yup - GitHub
Hi, Im trying to create a multi tab form with yup and formik, but I couldn't figure out how to create the validation...
Read more >
Laravel nested validation based on nested field value
I need to validate a nested field based on another nested field. Copy Code // $request->input has below data $input = [ 'name'=>'abc.com', ......
Read more >
Nested Objects and Arrays - VeeValidate
vee-validate supports nested objects and arrays by using field name syntax to indicate a field's path. This allows you to structure forms easily...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found