Forums

Multi Page with mod_chronocontact

bwi 19 Jun, 2009
I was able to get the Multi Page working with 3 steps, each step submits to the database and carries to the next. Though I'm having problems displaying the form on a page such as in a side bar. I tried mod_chronocontact using the 'mother' form but got the following error. Any way I can achieve this? I'm trying to put the initial form (which has a few form fields firstname, lastname, etc...) on pages, preferably in mod_chronocontact so that I can surface it on several pages.

Fatal error: Call to a member function getPageParameters() on a non-object in ..../components/com_chronocontact/libraries/chronoform.php on line 40
GreyHead 19 Jun, 2009
Hi bwi,

Please see this post for a fix for the Fatal Error.

I don't know if multi-page will work in the module or not, please let us know what you find out.

Bob
bwi 19 Jun, 2009
Thanks for the quick response.

Well, I can now see the form, but now getting this error:

Fatal error: Call to a member function get() on a non-object in .../components/com_chronocontact/libraries/chronoform.php on line 94

If I can't get mod_chronocontact to work, do you know of another solution or have came across other scenarios similar to displaying the form on the page? Thanks.
GreyHead 19 Jun, 2009
Hi bwi,

Bit baffled by that one - its the little function that is used to get form parameters and it's used all over the place.

I think that the error can only occur of no formname has been found for some reason :-(

Maybe Max can suggest something here.

Bob
bwi 20 Jun, 2009
Thanks Bob. I'm trying out another solution as I can't seem to get this to work. Here is my other solution -> using a form outside of the multi-page forms set that submits to the multi-page 'mother' form process. The tricky part is, (or at least in my mind it's tricky) I need to capture each steps forms data to the same database table, include the very first form that is not part of the multi-page form set. I was able to get the multi-page form steps to capture the data to the same table from a previous post of yours - http://www.chronoengine.com/forums.html?cont=posts&f=9&t=14744&start=0&hilit=%24data+multi:

Any advice on how I can capture the very first forms data to the database and into the multi-page form process. I used the Submit URL: under the 'General' settings to submit data to the start of the multi-page process. However, this doesn't save the data to the database.

Thanks!
Max_admin 23 Jun, 2009
Hi bwi,

I think this problem is fixed in RC5.2 which is about to be released!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
bwi 30 Jun, 2009
Great! I'm looking forward to it! Is RC5.2 a scheduled release? Just wondering when I can get my hands on it, I'm eager start running...

Thanks,
Jay
bwi 02 Jul, 2009
Great work on RC5.2! Things are look good, you guys rock...

I am having a slight issue that I hope you can easily suggest a resolution to with the Multi Page with mod_chronocontact - The multi page form worked as far as displaying the actual form on the page(s) sidebar (where I'm calling the mod), however when I submit to the 2nd step/form of the process, both forms are displayed on the same page. The 1st form in the sidebar and the 2nd form in the primary content area. Also, would not submit to the 3rd step/form.

I thought maybe doing a target="_blank" onsubmit would do it, but it simple opens the same in a new window. I notice that it's adding an itemid at the end of the URL - index.php?option=com_chronocontact&task=send&chronoformname=ProcessForms&Itemid=11 - I'm assuming this has something to do with it?

Also, notice some issues with the validation, but I think I read in the forums that there is a patch coming to fix this?

Thanks!
Jay
bwi 06 Jul, 2009
If anyone is following this post and is wondering about the itemid - I've adjusted the code to 'not' append the itemid by removing the following line of code on within the chronoform.php file.

if((int)JRequest::getVar('Itemid')){
$actionurl = $actionurl.'&Itemid='.JRequest::getVar('Itemid');
}

Line 196 or so...
theintern 28 Jul, 2009
I seem to be having some of the same problems you are. My form works perfectly in the preview, but when I actually embed it in the page I get:

Fatal error: Call to a member function getPageParameters() on a non-object in /hsphere/local/home/ensoft/hyouka2.ensoftcorp.com/joomla/components/com_chronocontact/libraries/chronoform.php on line 40

I tried using the fix posted here:
http://chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&p=34104#p34104

But this only makes the first page of the form work. Once the user clicks on the submit button I receive an error that the second form can't be found, which I know isn't right.

Does anyone have any good solutions for me?

By the way I'm not sure what version I have. I downloaded about 2 weeks ago and the site say that RC5.3 has been up since 06/07 so I should have that version.
bwi 29 Jul, 2009
Did you upgrade the mod_chronocontact as well to mod_chronocontact_V3.1_RC5.2.zip?
theintern 29 Jul, 2009
I don't think so. I am going to give this a shot today. Thanks for your response.
alessiop 12 Mar, 2010

The 1st form in the sidebar and the 2nd form in the primary content area. Also, would not submit to the 3rd step/form.



i have the same problem with latest version of chronoform and mod chronocontact, did u figure out how to solve it?
pokie 03 Aug, 2011
Your responses are rather informative.
f you also have the chrono plugin installed buy levitra & published, you can add a form into content (such as an article) using the following syntax: {chronocontact}form_name{/chronocontact} This allows you to place the form anywhere within the article - you can preface the form with content (such as a heading) ....
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount

{item:title} {images:#}