Hi All,
I have configured Customer Service Powerapps Portal and I want to validate "Profile Page" based on some fields.
Custome JS not working for Profile Web Page, I registered JS under Profile Web Page -> Localized Content -> Advanced Tab -> Custom Javascript but it did not work.
Please suggest how to achieve this.
I tried below code snippet :
if (window.jQuery) {
(function ($) {
if (typeof (webFormClientValidate) != 'undefined') {
var originalValidationFunction = webFormClientValidate;
if (originalValidationFunction && typeof (originalValidationFunction) == "function") {
webFormClientValidate = function() {
originalValidationFunction.apply(this, arguments);
if($("#cr243_otp").val() === "")
{
alert("OTP required");
return false;
}
else
{
return true;
}
};
}
}
}(window.jQuery));
}