Not applicable

Re: Nintex forms custom button submit AND redirect

Hi there,

If you manage to get your save/submit button by jQuery then you just need to use the click function.

In the end of the day we're just simulating a click on that button.

ex:  jQuery("#formSaveButton").click()

Good Nintexing!

João Neto

0 Kudos
Reply
Not applicable

Re: Nintex forms custom button submit AND redirect

What's the redirect URL syntax that you use in the form settings to open a new form on submit?  I've tried several variations and nothing works.

0 Kudos
Reply
Not applicable

Re: Nintex forms custom button submit AND redirect

What's the redirect URL syntax that you use in the form settings to open a new form on submit?  I've tried several variations and nothing works.

0 Kudos
Reply
dirtmerchant
Novice

Re: Nintex forms custom button submit AND redirect


whatever your path is the form itself is NewForm.aspx  so a typical url would look like:

https://mastersite.com/sites/SITENAME/LISTNAME/NewForm.aspx

0 Kudos
Reply
dirtmerchant
Novice

Re: Nintex forms custom button submit AND redirect

Can't seem to get it to work for me....On my Nintex Form I have a button type "save" and named "savebutton" and another button type "javascript"  named "add" and client click is set to "MyFunction() 

I created MyFunction in the Form Settings Custom JavaScript:

function MyFunction()

{

NWF$("savebutton").click();

alert("The savebutton was clicked.");

}

I see the alert, but the " savebutton" button is not clicked and the record is not saved

What am I doing wrong?

0 Kudos
Reply
mikeng
Novice

Re: Nintex forms custom button submit AND redirect

Has anyone found a solution to this problem?

many thx..

0 Kudos
Reply
tomaszromanski

Re: Nintex forms custom button submit AND redirect

In this case the name selector doesn't work properly, try again with a jQuery class selector.

'MyFunction' looks like this:

function MyFunction() {

//css selector: first assign the css class 'mySaveClass' to the save-button

NWF$(".mySaveClass").click();

}

This solution works for me, without any problems

Reply
Not applicable

Re: Nintex forms custom button submit AND redirect

I tried this your solution and with our version (1.5.2.0) it doesn't seem to work for me (nothing happens). I added "mySaveClass" to the CSS of the button that is set as "save" and then called "MyFuction()" from another button and had the javascript in the correct place and no effect at all.

Did I miss anything?

0 Kudos
Reply
tomaszromanski

Re: Nintex forms custom button submit AND redirect

Did you run already the F12 Developer Tools in IE? Open the Developer Tools and type in the console: NWF$(".mySaveClass").click(); --> Please compare with the screenshot!.

F12Tolls.JPG

If nothing helps you could send me your workflow (export and save as * .nwf)

0 Kudos
Reply
Not applicable

Re: Nintex forms custom button submit AND redirect

Hi Tomasz,

Thanks for the quick follow up, below is what my console shows when I run the command directly.

console_capture.png

I truly appreciate the help with this,

Jim~

0 Kudos
Reply