215 Posts
iliil
7 years ago
2
Topic

Hello

I just want to ask, if anybody has this experience.

I'm loading a seblod form  in iframe in Bootstrap3 modalbox. I can not find an ideal solution for  what should happen after the form submition.

The best scenario would be of course to close modal box after the form submition and show "thak you" message in parent window.  I somehow don't know how manage this. The second option would be to keep the modal box open and after the submition show   "thak you" message there, but I have no idea where to redirect.

If you have faced the same thing, many thaks for a possible help.

Michal

.

Get a Book for SEBLOD
215 Posts
iliil
7 years ago
0
Level 1

Well, many thanks for you answer, Klas!

However, it doesn't really solve the core of my issue. I am aware that it's possible to control parent window with javascript, this part is clear to me.

My problem was the actual workflow to close modal box AFTER the SEBLOD form in iframe  is submitted -> where to redirect and where to write the script that will close modal box in parent window.

In fact, I need to achieve the same functionality we can see in SEBLOD backend -> field edition. The field form appears in modal box iframe and after Save & Close the form is submitted and after the modal window closed.

Again, thaks for sudgestions.

Michal

Get a Book for SEBLOD