Page validation

Hi;

Is it posible to add custom validation not connecting with any page but just run on page validation on Pre_configured page

Like 0

Like

4 comments

Hello,

Please describe the filter more precisely. Where it should work if it doesn't lie on a page. 

Hi;



When i have a condition base on many elements when I join it to one element it return error ena then when any other validation appear i got the message about wrong validation.

I would like to run validation just at the quiting the page and not asign it to any element

tomasz.branicki,

I'd write something like 

methods: {
			onTestClick: function() {},
			myValidation: function(callback, scope) {
				var resultObject = {
					success: false
				};
				callback.call(scope, [resultObject]);
			},
			asyncValidate: function(callback, scope) {
				this.callParent([function(result) {
					if (result.success) {
						this.myValidation(callback, scope);
					} else {
						callback.call(scope, result);
					}
				}, this]);
			}
		},

 

Eugene Podkovka,

 THANKS

 

Show all comments