How to show prompt in omniscript when the user is trying to refresh the step in omniscript?
Yes that is possible
Problem- As per the current version of OS, when the user refreshes the current page (step in OS terms), it takes user back to the initial step, without saving the changes.
- To avoid the above problem statement, that when a user accidentally or knowingly tries to refresh the browser page for OS, its better to show warning prompt to the user, so that they can make calculated decisions.
- Promote warning can be enabled as Vlocity Omniscript designer > open OS > Script configuration > Enable Unload Warning (check this)
- Now when the user tries to refresh the omniscript page it shows user warning.