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

setTimeout() doesn't call function after specified time in Nintex forms for SP2013

I am trying to display a message on form submission after user saves an SP2013 list item.

Here's the custom JS in Form settings:

function MyButtonOnClientClick(){ 

setTimeout(function() { 

   SP.UI.ModalDialog.showWaitScreenWithNoClose('Working on it', 'Please wait, the form is being submitted...');   

}, 10000); 

}

 

Added the following to OnClientClick action of Submit button:

javascript:MyButtonOnClientClick()

The wait screen doesn't get displayed and item gets saved to SharePoint list.

Most previous posts with similar issue seem to do with the function call inside setTimeout function but that doesn't seem to be the problem here.

Any suggestions please?

Labels: (1)
0 Kudos
Reply
1 Reply
Automation Master
Automation Master

Re: setTimeout() doesn't call function after specified time in Nintex forms for SP2013

Haven't done this for a while but are you sure that "javascript:MyButtonOnClientClick()" is the correct value at this point? As far as i remember you only need to enter the name of the js function you want to execute on client click which would be "MyButtonOnClientClick()".

 

Can you add some console.log() inside your function just to see if it is executed at all?

0 Kudos
Reply