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
Hi,
You can use js validation to stop saving on portal.
Hi Naresh,
Instead of this you should use client-side validation to implement this requirement, refer
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6