I have a table for which I need some custom validation when fields are edited. I want to create something like:
Action:
When a specific field on a row in model is updated, run a snippet
Snippet:
If field X (which is the one that was updated) is not empty and field Y (in the same row) is not empty, revert the value of field X back to its original value and show a message (similar to an issue from awhile back would be great), or even remove the value from field Y.
I may be able to figure this out with some of the existing examples, but I can’t determine what arguments are passed into the snippet in this case. How do I refer to the record/context of the current row that contains the field that was changed? I can see that “arguments[0]” in my snippet contains an object, but what object is it? Every attribute I try to access (index, value, id, row, etc.) of that object is undefined.
Question
Field-level real-time custom validation in a table
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.