Further to this...AEM uses the JCR property "validateExp" to do validation.
guideRuntime.js:25733:
if (validFlag && this.validateExp ) {
>> validFlag = this.executeExpression("validateExp");
guideRuntime.js:25149:
_expressionHandler: function (expressionName) {
var expFn, returnValue;
if (this._compiledExpressions[expressionName]) {
expFn = this._compiledExpressions[expressionName];
try {
>> returnValue = expFn.apply(this);
We have the option to override guideRuntime.js (I think) to check our own JCR property for a function we implement, but we'd rather not override core stuff.
Is there a more standard way to do this to build our own library of functions to validate?