Issue:
While I try to submit the Nintex form without filling the mandatory fields, the confirmation dialog is coming and then it is showing the requried field error message.
My requirement is Confirmation dialog should come onclik on "Save" button, once the require field validation gets succeeded and items gets added to the list.
Solution:
Add in the following javascript code in the Custom Javascript area on the settings page then the pop up will appear, once the form will be submitted.
NWF$(document).submit(function () {
if (NWF$('.nf-validation-summary').css('display') == 'none') {
alert("Form Submitted Successfully");
}
else
{
alert("Please Fill all Mandatory fields");
}
});