Announcement Announcement Module
Collapse
No announcement yet.
SWF - JSF - confirm dialog before leaving a flow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SWF - JSF - confirm dialog before leaving a flow

    I need to implement a feature that allows me to go ahead and terminate/or stay in the current flow depending on what the user selects in a confirm dialog.

    We have a webflow to create a new order that consists of 5 steps.
    If for example the user is filling in step 3 of 5 and he clicks a link on the page that starts a new flow(any action that terminates the active flow), we want to give him a confirm dialog that says something like "are you sure you want to leave the current order registration, all data will be lost".

    If he clicks yes, he will continue to the new flow, if he says no, he will stay in the current.

    Is it possible to do something like this? I was looking into writing a custom FlowExecutionListener, but I don't think this is the right approach.

    Thank you.

  • #2
    Hello

    If he clicks yes, he will continue to the new flow, if he says no, he will stay in the current.
    Where he could do click?, You could consider use Javascript to show the prompt message, then go to a end-state clear the object(s) and then start a new flow.

    Comment

    Working...
    X