Skip to main content
Nintex Community Menu Bar

Hello, on Nintex form for SharePoint 2013 on prem, on “Save and Continue” type of button, I want to set value of variable... how to call JavaScript function on click of “Save and Continue” type of button?

  • March 16, 2018
  • 2 replies
  • 31 views

How to call JavaScript function on “save and Continue” type of button on nintex form? Kindly help

2 replies

Forum|alt.badge.img+7
  • Novice
  • March 18, 2018

You can't do that on a save and continue button.

If you want to add JS to a button you need to choose the JavaScript option, name it Save and Continue , then add in your code to do what you need to do, which would be save the form in current state plus whatever else you are trying to do with code.


  • Author
  • March 19, 2018

Thanks Ben for suggestion. I am not sure, with  Javascript type of button, of we can skip form control validations.

But i have resolved with below way:

I have added few lines of code in Nintex form custom JavaScript settings, and my job is done

$("input.myDraftBtnClass").click(function(){
//do something
});

myDraftBtnClass - is class applied to my "Save and Continue" type of button.