form in modal box

Status
Not open for further replies.

prophoto

Active Member
I found this old thread which talks about adding a form in a modal box but its not working, it opens the link in the same window without the modal box. Once the form is submitted I'd like the box to close or show a close box button if auto close after a few seconds is not possible.

http://fabrikar.com/forums/index.php?threads/how-to-open-a-form-in-a-pop-up.22470/

Check my lwns site. Module #123 shows on the homepage only when logged into the frontend.
 
There's something wrong with the way you added the php into the template as it appears to have been added in as text? As in I can see it in the page source code, where as it should be run as php on the server side, and thus nothing shown in the page source.
 
I had tried to use it in a module so it only loads on the pages its needed. I tried adding your code to the template's index.php but it gives me wsod.
 
you can't write PHP in a module - it coverts it to text. You might be able to use a plugin like directphp to enable you to add the php in the module.
I tried doing what i suggested - putting it in the Joomla template and for me t works - here's a video of what I did :
http://screencast.com/t/eCsrWoTQqD
 
[Wed Jan 29 15:51:51 2014] [error] PHP Fatal error: Call to undefined method FabrikHelperHTML::iniRequireJS() in /templates/jsn_metro_free/index.php on line 12, referer: /login.html
 
Are you sure that's a Fabrik 3.1 site?

Looks like 3.0 to me. Which would explain why iniRequireJS() doesn't exist, as that wasn't added till 3.1.

-- hugh
 
oups its a Joomla 2.5 site with Fabrik 3.0.9. I'll move this thread to the correct board once I've replied.

So as per the wiki page (http://fabrikar.com/forums/index.php?wiki/javascript-window-class/) you should use the Fabrik 3.0 code:

Code:
<?php FabrikHelperHTML::framework();
FabrikHelperHTML::windows('a.myFabWin'); ?>

I did exactly the same as in my previous video but on a Joomla 2.5 site with Fabrik 3.0.x, just replacing the php code with the 3.0 version and it works for me.
 
Yeah big oops on my side... That would explain it! I've upgraded the site to the latest git and added the correct php code to the template. The popup is showing at the bottom of the browser window and the hidden fields are showing in the box (ip, id, date, etc). Ideas?
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top