AnsweredAssumed Answered

Execute DialogResult.OK After Form Submission

Question asked by mhijazi100 on Jul 20, 2018

Hey Guys,

 

I have a question regarding Nintex Forms 2013.

 

I'm opening the new item form using SP Modal Dialog, after clicking submit I want to run the below line.

SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.OK);
Since I have a callback function on the parent page to do something if DialogResult is OK or not 

But this doesn't seem to work, onclientclick is not working since this line will close the modal popup and so the form won't be submitted.

I want to execute this after submitting the item. Any workaround except Page Redirect?
I think if I can submit the form from OnClientClient and then run the above it will work.
But so far I didn't find any working JS code to submit a Nintex form.


Appreciate your help folks.........

Outcomes