This discussion is archived
2 Replies Latest reply: Jan 28, 2013 4:19 PM by 948638 RSS

Confirm Dynamic Action

948638 Newbie
Currently Being Moderated

Using Apex 4.2

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?
  • 1. Re: Confirm Dynamic Action
    Mahmoud_Rabie Journeyer
    Currently Being Moderated
    Dear Samuistu,

    Would you build a sample on a workspace on and provide developer account to be able to help you

  • 2. Re: Confirm Dynamic Action
    948638 Newbie
    Currently Being Moderated
    Sorry, I must have needed a couple of days off!

    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.

    javascript:if(confirm('Save before closing?'))

    Thanks anyway.



  • Correct Answers - 10 points
  • Helpful Answers - 5 points