Hi all,
I want to add custom validation in the dynamic 365 portal. In the webform registration page, I want to add two input fields validation. I am using general validation that is given by the Microsoft website. In this code webFormClientValidation is undefined and validation is not executed.
if (window.jQuery) {
(function ($) {
if (typeof (webFormClientValidate) != 'undefined') {
var originalValidationFunction = webFormClientValidate;
if (originalValidationFunction && typeof (originalValidationFunction) == "function") {
webFormClientValidate = function() {
originalValidationFunction.apply(this, arguments);
// do your custom validation here
// return false; // to prevent the form submit you need to return false
// end custom validation.
};
}
}
}(window.jQuery));
}
URL :- https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/add-custom-javascript
Thanks.
Best Regards,
Dipen