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?