Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

stop save operation on portals form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi ,

I need to save operation on ms crm portals so below code written but while clicking on ok it is saving automatically

could you please advice any wrong with my code.

$(document).ready(function () {
$('#NextButton').on('click', function (e) {
debugger;
var supporter = $('#crm_nameofcontact').val();
if (supporter != null && supporter != "") { }
else

alert("Name of  contact field is manadatory");
e.preventDefault();

}

})
});

Thanks,

Naresh

*This post is locked for comments

  • Suggested answer
    sandeepstw Profile Picture
    sandeepstw 4,601 on at
    RE: stop save operation on portals form

    Hi,

    You can use js validation to stop saving on portal.

  • Verified answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: stop save operation on portals form

    Hi Naresh,

    See: docs.microsoft.com/.../add-custom-javascript

    Hope this helps.

  • Verified answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: stop save operation on portals form

    Hi Naresh,

    Instead of this you should use client-side validation to implement this requirement, refer

    docs.microsoft.com/.../add-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

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