Hi Team,
I have implemented a customization that adds a button to the Sales Order form using a User Event script. When this button is clicked, it opens a form prompting the user to input certain details. Upon submission, the form sends a POST request to a Suitelet, which performs additional actions. Once the Suitelet completes its tasks, it redirects back to the Sales Order.
I would like to enhance the user experience by displaying a loading screen or spinner when the user submits the form, maintaining it until the Suitelet finishes processing and the redirection occurs. Is there a recommended approach to achieve this?