Actually, I have developed code for validation but it is executing onblur of corresponding field. Instead, I want to run my validation code on click of Save button in new Contact form. Can you please suggest me where can I do this mapping. Thanks much in
Actually, I have developed code for validation but it is executing onblur of corresponding field. Instead, I want to run my validation code on click of Save button in new Contact form.
Can you please suggest me where can I do this mapping.
Here new contact is creating with same mobile number or email validation has to perform.here validation is performing after validation popup if you click on save button it is saving the data
Like
You would need to override the saveAsyncValidate method on the Page.
One of the Arguments is a callback function. If your validation passes, then invoke the callback, otherwise alert the user that there is an issue:
saveAsyncValidate: function(callback, scope) {
var self = this;
var validated = false;
//Perform your validation
if (validated) {
self.Ext.callback(callback, scope || self);
else {
self.hideBodyMask();
self.showInformationDialog(errorMessage);
}
}