Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

overwrite form save function

(0) ShareShare
ReportReport
Posted on by 2,429

Hi, I want to add some JS validation when saving forms

*This post is locked for comments

  • Verified answer
    a33ik Profile Picture
    84,325 Most Valuable Professional on at
    RE: overwrite form save function

    Hello,

    You can add OnSave event handler, perform your validations and cancel save if you need - neilparkhurst.com/.../javascript-prevent-save

  • Verified answer
    Gopalan Bhuvanesh Profile Picture
    11,401 on at
    RE: overwrite form save function

    Hi

    You can invoke the validation function for Onsave event.

    You can cancel the save action by using the preventDefault method

    Please refer the following:

    https://msdn.microsoft.com/en-us/library/gg334481.aspx

    community.dynamics.com/.../203414

    community.dynamics.com/.../181875

    prashantmayur.wordpress.com/.../xrm-page-context-geteventargs-preventdefault

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans