I can't get it to work to go to the second Page.
Is it also possible when you have a 10 page "Multi Page" to submit after page 5?
Page 2 to 10 will be all the same pages but not everybody needs the 9 "pages"
I built a little test of this today. The submit buttons on each 'child' form took me to the next one. They probably need renaming 'Next step' rather than Submit though.
If you turn the option on you can use the 'cfformstep=n' parameter in a link url to move between forms. In your case you could give people an option between going to 'Next Step' or 'Last Step'.
Bob
could you please explain the procedure to create a multi-pages form?
I created 5 different forms but I can't link them together, I don't understand how the Multi-Page plugin is supposed to work.
What am I supposed to write in those fields?
Is it possible to download the form in pdf after submitting it?
There's a bug with the current release - please contact Max for the updated version.
Number of steps : 5
Steps forms: form_1,form_2,form_3,form_4,form_5
There's currently no easy way of converting the result to pdf - but search the forums for a few threads on this.
Bob
Username is 'admin' or use the Contact Us link in the menu bar above.
Bob
Got ChronoForms V3.1 RC5.1 from Max.
I see no inprovement for creating multipage forms.
Could you make a "backup" form" from your working form so I can restore it over here to see if that works?
log:
Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [textfield] => fghf [textfield2] => fgh [submit] => Submit [1eb3500014476ce06c01d09203182a19] => 1 [1cf1] => 7a1731e144204421cc576bc0d02278f5 )
$_FILES Array: Array ( )
Form passed the plugins step (if enabled) OK
Debug End
I can't get this to work 😟
If I have two forms which I want link together (multi page), do I have to create the "Multi Page" for both forms and setup the parameters there (number of steps etc.) and enable the Plugin on both forms? Or just configure all this for the very first form only?
Thank you verymuch!
Patrick
Think of it as a mother with children. You have to set up the mother form as a multi-form and the children just as ordinary ChronoForm forms.
Bob
Have installed the update.
When I preview the first form there is also no navigation for the child forms, only submit.
What am I doing wrong??
Thank you, now I got it :-)
But if I click on the button to go to the next step, I get this error message:
Error processing this form, form was not loaded!
I did double check the settings and they seem to be fine. I use a regular submit button to go to the next form page. The "Steps navigation" is not working, actually not even showing up.
Any idea what causes this?
Patrick
The first time I hit the button I get to the 3rd page instead of the second. The secon click on page 3 brings page 2. And then page 3 again and page 2 again. I never get to page 4.
The steps navigation never shows up and with every click an email is generated and sent instead of just one at the very end. So I get lots of mails...
Any idea why?
Thank you very much!
I know we fixed this, the problem was that you enabled the multi page plugin for one of the child forms and that was messing things, multi page plugin should be enabled at mother form ONLY
Regards,
Max
Thank you so much for your help.
I don’t know why the multi page plugin was enabled on the last form, I was sure to have it disabled. Anyway, the forms work now, thank you.
I just can’t figure out how to get the results emailed in one email. Is this possible? If I enable email in each form, I receive an email for each form. Is this the correct way? I think it would be smarter to receive the results from all multi page forms in just one email(?).
The same goes for storing the data into the database. Is it possible to have one database table for storing the data of all multi page forms or must there be a table for each form?
And last question regarding the steps navigation: I did enable it on the mother form. But it is not showing up. Why? Or do I have to add the links manually? In this case I guess I must create Wizard elements because I did create the forms with the wizard?
So many questions... 😀
Again, thank you very much for your great support!
Best regards
Patrick
If I enabled to mail data I receive 3 mails. Motherform is blank (no data) and every child form send an email.
I would like to receive just one mail with all the information.
I make a little test and I copy email template of form1 into form2 so when form2 send the mail, include the whole information. So that fix the problem.
I just would like to know if is the better way I shoud do it. Or is better to include all mail template into motherform?
Thanks,
Dani
I make a little test and I copy email template of form1 into form2 so when form2 send the mail, include the whole information. So that fix the problem.
Hi Dani
Great!
I don't know if there is another way, but this way it's working...!
Patrick
#1- the emails issue, if you need 1 email then do it for the mother form only, it will get emailed after the last step! child forms do their own actions and so you will get emailed if you setup an email at a child form!
#2- same for DB storage, for the mother form only if you want 1 time save!
#3- if you want steps navigation then you need to setup links, please check this post, I will be testing this more today for some enhancements:
http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&f=2&t=14865&start=0
Regards,
Max
I have two forms child forms: OnlineReservationsPsngr,OnlineReservationsPD.
These are configured configured with the Multi Page plugin with 3.1 RC 5.5 to the mother form OnlineReservations.
The plugin is enabled only on OnlineReservations.
When I click the link to OnlineReservations I get an internal server error page.
So far I have found disabling the plugin displays the empty OnlineReservations page. When the plugin is enabled I see this error.
Debug has this to say:
$params: JParameter Object ( [_raw] => debugging=0 onsubmit=before_email stepscount= formsnames= stepsnavigation=0 [_xml] => [_elements] => Array ( ) [_elementPath] => Array ( [0] => /home/***/libraries/joomla/html/parameter/element ) [_defaultNameSpace] => _default [_registry] => Array ( [_default] => Array ( [data] => stdClass Object ( [debugging] => 1 [onsubmit] => before_email [stepscount] => 2 [formsnames] => OnlineReservationsPsngr,OnlineReservationsPD [stepsnavigation] => 0 [finalbuttonname] => Submit Reservation ) ) ) [_errors] => Array ( ) )
Where else should I look for the cause of this error?
The DeBug info looks OK. Do the child forms work on their own?
Server errors are pretty rare and usually seem to be associated with problems generating the Anti-Spam image* so please check with Anti-Spam off and see if this fixes the problem.
Bob
* Or with Excel export but you aren't using that here.
i've tried, but i got fatal error notification...
but, i got this notification
Parse error: syntax error, unexpected '-', expecting ',' or ';' in /home/server/public_html/components/com_chronocontact/chronocontact.php(53) : eval()'d code on line 32
on the top of my forms.anyone know how to fix this?
You probably have a dash '-' in one of your input names. Dashes give ChronoForms and MySQL problems. Please rename the input using only [a-z], [A-Z], [0-9] or underscore '_'. No dashes, spaces or other special characters.
You need to refresh the DB Connection after any changes to database column names. In the Form Editor click the DB Connection tab and set the Connection to 'No'. Click the 'Apply icon in the toolbar to save the form, open the DB Connection tab, set the Connection back to 'Yes' and re-save the form. This will refresh the copy of the table information that ChronoForms uses.
Bob
I've been reading a lof of threads about multi page forms in this forum, but I still can't figure out how to make one work.
I have created 5 forms (mother - which is empty - and 4 children), set the multipage plugin on in the mother-form's settings and configured the multipage plugin options. Everything seems working as expected, but now I need to:
- activate the Email verification plugin: do I have to activate it only on the mother-form?
- set up 2 emails with the results: how could i get all the fields' values from the 4 steps of my module in one email?
- create table(s): how could i make all the fields' values be written in a sole table? do I have to create tables for all the 'children' modules?
I'm sorry, but I haven't found any solution in the other threads...
you should turn on the multi page plugin in every form that you made (mother and child), and configure it just on a mother form to make it works, dont forget to add submit button on each form to navigate you.
activate the Email verification plugin: do I have to activate it only on the mother-form?
Probably, that will have it run at the end of the last form.set up 2 emails with the results: how could i get all the fields' values from the 4 steps of my module in one email?
If I remember correctly ChronoForms makes all the data available to you.create table(s): how could i make all the fields' values be written in a sole table? do I have to create tables for all the 'children' modules?
You can use a single table provided that it contains columns to match all of the inputs.Bob
PS
you should turn on the multi page plugin in every form that you made
That could cause some problems, it only needs to be turned on for the mother form.You can use a single table provided that it contains columns to match all of the inputs.
How can I do that? If I select my mother-form and I click on "create table", all I get is the fields from the 1st child-form. Do I have to add the other fields manually?
I do it by: [list]
Bob
Thank you again for your helpfulness. I've done as you told me and the table works, but there's another problem: if I go to the related table I have one record for each one of the child-forms (eg: I have 4 child-forms and I get Record 1 - with data from child-1 -, Record 2 - with data from child-2... etc). Is it possible to have all the detailes stored in one single record?
Then there's another problem with the email: I put in it all the fields from all the child-forms but I get only those from child-form2. Moreover, there are also problems with redirecting and other things...
I'll do one single form with everything inside, that would be definitely better and that will work immediately. Thanks anyway for your help and time 😀
You have to pass the cf_id (or the primary key if it isn't cf_id) from the first form into the later child forms as a hidden input. Then the same record will be updated.
The redirection and email problems are all solvable with a little logic and patience . . . but a single form is quicker and easier :-)
Bob
Mother form html to recall cf_id:
<input type='hidden' name='step_name' id='step_name' value='<?php echo $MyForm->formrow->name; ?>' />
<?php
$cf_id =& JRequest::getString('cf_id', '', 'post');
if ( !$cf_id ) {
$last_step_name =& JRequest::getString('step_name', '', 'post');
if ( $last_step_name ) {
$formData =& CFChronoForm::getInstance($last_step_name);
$data =& $formData->tablerow['jos_assessments'];
$cf_id = $data->cf_id;
}
}
echo "<input type='hidden' name='cf_id' id='cf_id' value='".$cf_id."' />";
}
?>
I had this working before and it was all publishing to the one row in the table but something happened when i was playing with the confirmation plugin, and emails, which corrupted the table for this form and i had to recreate it. now its not working and i cant remember what i did. i
table set on mother form only.
mother form only form set to send form data to table
emails on mother form only - wont send as no results saved.
no confirmation form plugin
thank you message displays as set on mother form but no dynamic names displayed.
redirect url sends up black white page.
any help would be great. Have a feeling its something ridiculously simple. Thanks
ARe you saving at each step? or only at the end?
You only need that code in the step after the first save; form then on the cf_id will be held in the $posted array along with all the other for results and so the save *should* automtically update the same record.
Bob
so i only need to add the code to the second child form? or every child form after the first?
What are you trying to do here. Save after every step? or save at the end.
You only need that code to get the record cf_id in the step after the first save.
I don't see why that would stop the from loading. Sounds like a PHP error of some kind?
Bob
I would like the data to be saved after each step of the form so if an error occurs some of the data can be retrieved.
the cf-id code needs to be in the code html box? so i put it at the beginning of the form code. this could be where the php(?) error is occuring. I dont know much about php so i cant make that determination.
Below is the code for the second child form:
<input type='hidden' name='step_name' id='step_name' value='<?php echo $MyForm->formrow->name; ?>' />
<?php
$cf_id =& JRequest::getString('cf_id', '', 'post');
if ( !$cf_id ) {
$last_step_name =& JRequest::getString('step_name', '', 'post');
if ( $last_step_name ) {
$formData =& CFChronoForm::getInstance($last_step_name);
$data =& $formData->tablerow['jos_assessments'];
$cf_id = $data->cf_id;
}
}
echo "<input type='hidden' name='cf_id' id='cf_id' value='".$cf_id."' />";
}
?>
<div class="form_item">
<div class="form_element cf_dropdown">
<label class="cf_label" style="width: 150px;">Highest Education Level Achieved to Date:</label>
<select class="cf_inputbox validate-selection" id="nominee_education" size="1" title="Please select your highest level of education achieved." name="nominee_education">
<option value="">Choose level of education Achieved</option>
<option value="School Certificate">School Certificate</option>
<option value="Higher School Certificate">Higher School Certificate</option>
<option value="Tafe Certificate">Tafe Certificate</option>
<option value="Bachelors Degree">Bachelors Degree</option>
<option value="Bachelors Degree (Hons.)">Bachelors Degree (Hons.)</option>
<option value="Post Graduate Studies">Post Graduate Studies</option>
<option value="Doctorate">Doctorate</option>
</select>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textarea">
<label class="cf_label" style="width: 150px;">Details:<br/>
<span id='counter'>1000</span> remaining.</label>
<textarea class="cf_inputbox required" rows="5" id="nominee_details" title="Please insert a record of your highest educational achievement." cols="80" name="nominee_details"></textarea>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_fileupload">
<label class="cf_label" style="width: 150px;">Upload Portrait of Nominee</label>
<input class="cf_fileinput cf_inputbox required" title="Please upload a portrait/image of the nominee" size="20" id="nominee_portrait" name="nominee_portrait" type="file" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<input value="Submit" name="button_education" type="submit" />
</div>
<div class="cfclear"> </div>
</div>