Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Custom validation on portal using JQuery does not work : Page_Validators not defined

Posted on by 20

I'm trying to add a custom valdiation in an entityform, pretty forward conform this link : https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/web-forms/web-form-steps/custom-javascript/ but it doesn't work at all.

With some alerting I discovered that  'if (typeof (Page_Validators) == 'undefined') return;' causes a premature end to my attempt to add the validation.

Anyone an idea why Page_Validators is undefined ?

*This post is locked for comments

  • Rob Driessen Profile Picture
    Rob Driessen 20 on at
    RE: Custom validation on portal using JQuery does not work : Page_Validators not defined

    This could be an option but not in this case. I have to compare two dates, start- and enddate, as you can imagine, startdate must be before enddate.

    The only option I see is thru Javascript.

  • Muhammad Ainuddin Profile Picture
    Muhammad Ainuddin 106 on at
    RE: Custom validation on portal using JQuery does not work : Page_Validators not defined

    Hi Rob,

    You can use by Entity Form Metadata to add custom validation by following this link nishantrana.me/.../using-entity-form-metadata-to-configure-the-entity-form-in-portal-in-dynamics-365

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans