When using things like cbValidations for validating forms, if you are creating a UDF validator and need access to the data properties, you have to do something like this.
"uniqueEmails": {
udf = function( value, target, metadata ) {
var data = target.getInternals().data;
return data.email != data.email2;
},
udfmessage = "Type in different emails knucklehead."
}
To get to the data properties, you have to reference target.getInternals().data.
Provide methods to cleanup up the API, so you can do this instead.
When using things like cbValidations for validating forms, if you are creating a UDF validator and need access to the data properties, you have to do something like this.
To get to the data properties, you have to reference
target.getInternals().data
.Provide methods to cleanup up the API, so you can do this instead.