Content popup doesn't close after form submission

Bauer

Well-Known Member
I have a hidden menu item (alias 'other-survey-questions6') that opens a fabrik form. I have a link to that menu item that I want to open in a popup window. This is the HTML I am using...

Code:
<a class="myFabWin" href="/other-survey-questions6" rel="{'content':'Survey Questions','width':660,'height':480,'title':'Physicians','loadMethod':'iframe'}">
    <img title="Physicians" alt="Physicians icon" src="/images/medical-practice_80.png">
</a>

The popup works fine - but when I save the form the popup does not close.

Also when the popup first opens, as the form loads, "COM_FABRIK_LOADING" is always displayed above the spinner.
 
Yeah, the window won't close "as if by magic" after a submit, it needs some JS to do it, which usually happens in form.js, in the submit method ... 'bout line 1171. But I'm not sure you'll be able to do it from a link href, as the window ID will never get recorded anywhere. It usually gets stuff into the Fabrik.Windows[] array, but ... :/

There might eb a way of doing it, but I don't know how off the top of my head, and I remember tyring to work this one out before.

As for the language string, I suspect that because the standard Fabrik form "stuff" isn't being loaded on the page, which would usually set up the language strings.

-- hugh
 
I just assumed this would be handled in the code. I mean if you have configuration options for the popup form in the menu configuration, you'd think you'd add some code to close the popup when the form is submitted. I just came across this reply now. It's quite late and I'm about to shut down for the night. I'll look into it when I get time.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top