how to show a modal when press next on wizard step

i have a wizard with many steps and i want to add/remove steps based on user action , this action will be via a modal popup we show at first step when user press next button , when user accept or decline we perform certain actions based on the input
any help is appreciated
Was this page helpful?