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.

Please give `validator` access to row data

See original GitHub issue

Validator currently only has access to cell value It would be useful for when rows have different types of values to be able to use different validators depending on other values in the row

const data = [
  {type: 'name', value: 'John Snow'},
  {type: 'email', value: 'johnsnow@example.com'},
  // ...etc
];
const data = [
  {type: 'start_date', value: someDate},
  {type: 'end_date', value: someDateThatShouldBeAfterStartDate},
  // ...etc
];

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
AllenFangcommented, Jan 26, 2017

Released on v2.10.0, check this commit and example

1reaction
AllenFangcommented, Jan 17, 2017

ok, I got you, if I pass the row data to the validator, is that helpful for you right? if yes, I can try to support it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Restrict data input by using validation rules - Microsoft Support
Validations rules help you check data as it is added to your Access desktop database which improves accuracy and consistency of data entry....
Read more >
How to access row data in custom validator? | jQuery - ejGrid
This article explains the topic, How to access row data in custom validator? in Syncfusion Knowledge Base.
Read more >
How to Create a Validation Rule for a field in MS Access
How to Create a Validation Rule for a field in MS Access - Office 365. This video explains how you can create a...
Read more >
Validation Rules for Access Tables - Codekabinett
They are always enforced. Regardless if data is entered in any particular form, inserted or changed via an Update or Append Query, or...
Read more >
How do I validate a Form input field with a Table row value in ...
How do I validate a Form input field with a Table row value in microsoft access? · Consider using the Quantity control's Before...
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