Previous button for multi steps form in Dynamic Modal keep closing the Modal on click

Does anyone know how to prevent Dynamic Modal from closing when using a multi steps form inside it with previous button setup. I have a few previous buttons setup to go back to the previous form group step, but whenever I click any of the previous button it closes the modal instead of going to the previous. See video clip of what I am explaining thanks in advance.

Hello, please provide a link to your page.

Just PM you.

Your Previous buttons are set to toggle the modal:

<button class="btn btn-secondary" data-dismiss="modal" dmx-on:click="var3rdwrldapp.setValue(var3rdwrldapp.value-1)" data-toggle="button" data-target="#modal13rdworldprogram"><i class="fa fa-angle-double-left"></i>&nbsp;Previous</button>

remove the following from the buttons:

data-dismiss="modal"

and

data-toggle="button" data-target="#modal13rdworldprogram"

So your button code should look like:

<button class="btn btn-secondary" dmx-on:click="var3rdwrldapp.setValue(var3rdwrldapp.value-1)"> <i class="fa fa-angle-double-left"></i> Previous </button>

Thanks That fixed the issue.