Closed raquintero closed 7 years ago
@raquintero I've done similar by changing the options in the form based on conditions. But it depends on how many different values B has as to how well that would work for you. Have a look at the calculate plugin I added to the examples int he alpha, you may find you can validate against a hidden field instead and calculate its value from field B.
Please re-open if you do not feel the question has been answered sufficiently, I'm spring cleaning quiet issues.
Hello, I have a regex pattern on a field, with my custom validation message that works fine normally.
The key for this field is
parentA.parentB.parentC.parentD[].fieldA
However, if the value forfieldB
changes, the acceptable range of values forfieldA
needs to change, so basically, I want to know how to "trigger" this validation message on the form, if it is inside of an array? From the controller I am trying:scope.$broadcast('schemaForm.error.parentA.parentB.parentC.parentD[].fieldA','tv4-202',false);
I've tried all combinations, nothing works.