I have a form with a 'close' button (page item button) that has two states.
If the data in the form has not been changed, the button will simply do a js redirect - working
If the data has changed it will triggger a confirm DA (prompt to save and close or just close). - working
The confirm DA with answer ok will submit and redirect ie. 'save and close' - working
The problem I have is the confirm DA with the answer cancel just stops further execution (as advertised) but I need it to redirect with no save.
Is this possible or am I attacking it from the wrong angle?
Essentially, what I wanted was an action to be triggered when the Cancel button was clicked in a confirm dynamic action.
I have solved it by generating the confirm dialogue myself. Now clicking the close button has 3 possible outcomes.