Skip to main content

Notifications

Announcements

No record found.

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

Required validation

(0) ShareShare
ReportReport
Posted on by 465

Hi All,

I am using CRM 2016 On premise version and need to implement validation to check form date should be less than or equal to today's date.

How to implement this in Javascript. I don't want to save the record if validation fails.

Thanks in advance.

Regards,

Naren

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 1,014 Super User 2024 Season 2 on at
    RE: Required validation

    Hi Narendra Sunkara,

    This forum topic explains one JavaScript code approach for comparing a date field with the current date to determine whether or not it is less than today's date. You can cancel the save operation by adding the preventDefault Client API to the code in the forum topic.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans