cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Form cancel button: how do I set a function to cancel the form and close the window

I started playing around with Nintex forms in the last month after taking on the job of setting up a SharePoint 2013 page for my team. I have a form setup but need to stop the form directing to the SP list when someone clicks the Save and Cancel buttons.

I may have a solution to redirect the Save button but still am looking for something for the Cancel button.

When a user clicks the link to complete a form it is opened in a new window. If they click the cancel button I want the window that was opened to close without saving the form data. The nearest I can find for this to work is a JS along the lines of "return false and window.close" but I have no idea how to set this up or code it.

Can anyone help with this one or provide some suggestions on alternative solutions?

Labels: (1)
0 Kudos
Reply
1 Reply
Not applicable

Re: Form cancel button: how do I set a function to cancel the form and close the window

I've managed to find a solution to this myself:

function cancelAndClose()

{

NWF$('.cancelButton').click();

window.close();

}

It does what I need it to so it should suffice.

0 Kudos
Reply