Navigation: Javascript API > Events for user forms
OnAnswerConfirm
Scripts and functions defined here are executed when an answer dialog is confirmed.
If the script returns the script return the value false, the assignment is not executed.