Hello, I have a confiform which is taking a long time to submit. After the "submit" button is clicked, especially if documents have been attached, the user has no indication that they need to wait on the page while the form finishes submitting - many users are giving up and just exiting out of the form without finishing, and their data is then lost. They have to start all over.
I attempted to add a spinner to the page using instructions found at this link: https://aui.atlassian.com/aui/latest/docs/spinner.html
What I can't figure out is how to make the spinner appear when they click 'submit' and then disappear with the form is finished submitting.
In other words, there is lag time between the user hitting submit and the form actually submitting, and I would like a progress bar or spinner to show for the user during that lag time so they know the page is working on their form.