cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
jml006
Nintex Newbie

Nintex form will not submit with JavaScipt validation

Jump to solution

I have been struggling with getting a Nintex form to submit and am hoping someone will be able to provide some insight.  I have a form with a Save and Submit option.  On Save, the form does not need to have any validation as a user can save and go back and edit the form.  On Submit, the form fields are validated and a workflow kicks off.  I have a JavaScript file referenced in my form settings (under Advanced > Custom JavaScript Includes).  For my Submit button, the Button action is JavaScript and I'm calling my function for Client click (under Advanced).  The JavaScript portion works - if a user tries to submit the form with a missing field, they will receive an error message.  However, when all fields are correctly filled in and the Submit button is clicked, the form spins for a few seconds and then returns back to the form with all fields filled in.  I've read a few other posts, but I can't figure out why the form won't submit successfully.

 

Any thoughts or suggestions are greatly appreciated!

Labels: (2)
0 Kudos
Reply
5 Replies
jml006
Nintex Newbie

Re: Nintex form will not submit with JavaScipt validation

Jump to solution

I should also add that the form submits with no problems in Chrome, but we receive the issue stated above in Internet Explorer.

0 Kudos
Reply
cju
Nintex Newbie

Re: Nintex form will not submit with JavaScipt validation

Jump to solution

There's maybe a JavaScript error. Have you tried to see if there's one in IE using the debugger tool (you can access it by pressing F12 in IE) ?

0 Kudos
Reply
jml006
Nintex Newbie

Re: Nintex form will not submit with JavaScipt validation

Jump to solution

Hi Caroline!  I tried debugging with no success.  It turns out there was an extra line in my JavaScript. After having another set of eyes look at it, we were able to figure out the error.

0 Kudos
Reply
cju
Nintex Newbie

Re: Nintex form will not submit with JavaScipt validation

Jump to solution

I'm glad that you've fixed your issue

0 Kudos
Reply
Shinoj
Nintex Newbie

Re: Nintex form will not submit with JavaScipt validation

Jump to solution

I am facing similar issue -nintex form 2016.

here is my script:

function CaptureSnapshot(buttonName){  

var pageUrl2 = window.location.href;
var varcontrol = NWF$('#'+fldStatusSnapshot);
varcontrol.val("In progress").trigger('change');
NWF$(".nf-disableonsubmit[value="+buttonName+"]").click();  
alert("Click 'OK' to initiate the capture snapshot process. This will initiate the job to generate the snapshot data. This window will close and begin the process. You will receive an email when the process completes.");
window.frameElement.cancelPopUp();
}
Works on IE but not on chrome. Alert pop up shows up but workflow is not getting triggered.
0 Kudos
Reply