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:
SP.UI.ModalDialog.showWaitScreenWithNoClose('Working on it', 'Please wait, the form is being submitted...');
Added the following to OnClientClick action of Submit button:
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?