Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

General validation error in dynamic 365 portal

Posted on by 35

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

  • D patel Profile Picture
    D patel 35 on at
    RE: General validation error in dynamic 365 portal

    Hello all,

    Is there anyone who knows why webFormClientValidate is undefined?

    Thanks.

    Dipen

  • D patel Profile Picture
    D patel 35 on at
    RE: General validation error in dynamic 365 portal

    Hello Mohamed,

    I tried entityFormClientValidate. But I did not work properly.

    Thanks.

  • Suggested answer
    RE: General validation error in dynamic 365 portal

    Hello Dipen,

    Have you tried entityFormClientValidate  instead?

    https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/entity-form/attributes-and-relationships/custom-javascript/

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans