This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand
6 Posts
Jmtdesign
1 year ago
1
Topic

Hello
Here's the context.
I created a Seblod form that contains 2 steps. It works very well in an article.
But I have to put it in a modal. I use the native modal function of Joomla.
My problem:
When I press the Next button of the form the rest of my form and executed outside my modal.
I searched several solutions especially in JS. But still the same problem. If anyone has an idea or a solution.

Thank you Jean-Marc

Get a VIP membership
1222 Posts
Bucklash
1 year ago
0
Level 1

Hi

I have never tried this, but if you have a form with two stages ie 1 and final, then maybe you can add a js field assigned to stage final that triggers the modal. Have you tried this?

Methods
.modal(options)
Activates your content as a modal. Accepts an optional options object.
$('#myModal').modal({  keyboard: false}).modal('toggle')
Manually toggles a modal.
$('#myModal').modal('toggle').modal('show')
Manually opens a modal.
$('#myModal').modal('show').modal('hide')
Manually hides a modal.
$('#myModal').modal('hide')
Get a VIP membership