@eudosia
There is no example for this a custom submission and result handling.
If your initial screen is configured as a form in the visual designer then the code generator will create a presubmitxxx() postsubmitxxx() functions that you can implement custom handler code. In phoneui.js there is the submitForm() function that is call by widgets that use an OnClick Submit Form action. Give this function a look. You’ll see that it will display a busy cursor while executing.