Forums

Multi Page plugin

BenDover 07 May, 2009
Hi, is there information on how to use the "Multi Page" plugin?
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"
GreyHead 09 May, 2009
Hi bendover,

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
Killy 25 May, 2009
Hi,

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?
GreyHead 25 May, 2009
Hi Killy,

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
BenDover 25 May, 2009
Ah, was just going to post that I can't get it to work, will contact max.
BenDover 25 May, 2009
What is the member name of Max, or email?
GreyHead 25 May, 2009
Hi bendover,

Username is 'admin' or use the Contact Us link in the menu bar above.

Bob
BenDover 28 May, 2009
Hi GreyHead,
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
pat01 29 May, 2009
Hi

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
GreyHead 29 May, 2009
Hi pat01,

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
BenDover 29 May, 2009
Hi Bob, when I select the first form and make it multipage it still does not work.
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??
pat01 29 May, 2009
Hi Bob

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
pat01 11 Jun, 2009
After updating to the very latest version of CF, this message has gone. But the multi form still is not working.

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!
Max_admin 23 Jun, 2009
Hi Patrick,

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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
pat01 23 Jun, 2009
Hi 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
epsdaniel 23 Jun, 2009
Same problem here. I have two form plus motherform.

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
pat01 23 Jun, 2009

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
Max_admin 23 Jun, 2009
Hi Patrick, Dani,

#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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
DarksteelBlade 25 Sep, 2010
Firstly I would like to deeply apologize for necroing this thread, however this problem is nearly identical to mine.

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?
GreyHead 25 Sep, 2010
Hi DarkSteelBlade,

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.
usnul 28 Sep, 2010
could someone tell me step by step how to use this plugin??

i've tried, but i got fatal error notification...
GreyHead 28 Sep, 2010
Hi usnul,

There's a very simple example here

Bob
usnul 29 Sep, 2010
thanks, my multi page form works...
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?
GreyHead 29 Sep, 2010
Hi usnul,

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
odudi 03 Oct, 2010
Hello,
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...
usnul 03 Oct, 2010
hi odudi,

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.
GreyHead 04 Oct, 2010
Hi odudi,

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.
odudi 04 Oct, 2010
Hi Bob, thanks for your reply.

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?
GreyHead 04 Oct, 2010
Hi odudi,

I do it by: [list]
  • creating a new, temporary form;
  • copying the Form HTML from *all* of the child froms into the Form HTML of the temporary form;
  • save the temporary form;
  • create the table;
  • then delete the temporary form
  • [/list].

    Bob
    odudi 04 Oct, 2010
    Hi 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 😀
    GreyHead 05 Oct, 2010
    Hi odudi,

    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
    joomla_tatsu 31 Oct, 2010
    I have a 7 step form + mother form, which wont submit to the table set on the mother form.

    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
    GreyHead 31 Oct, 2010
    Hi Joomla_tatsu,

    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
    joomla_tatsu 31 Oct, 2010
    Bob,

    so i only need to add the code to the second child form? or every child form after the first?
    joomla_tatsu 31 Oct, 2010
    If i take the code out of the mother form and put it in the second child form the second form fails to load.
    GreyHead 31 Oct, 2010
    Hi Joomla_tatsu,

    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
    joomla_tatsu 31 Oct, 2010
    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>
    This topic is locked and no more replies can be posted.