Forums

CF-to-CF cURL question

stmoist 06 Apr, 2009
Greetings, and thanks in advance for what I hope is a simple fix! I've read the standard cURL references here in the forum (here, here, and here) and am having trouble getting a form to carry the data forward to the next form. Here's what I have and what I would like the form to do:
[list=1]
  • Enter three pieces of information on the main page at NationalCSA.com in the "Feedback Central" box (we'll call this the "intro" form)

  • When the user clicks the "Click to Leave Feedback!" button on intro form, they are transported to the main form to finish entering their feedback

  • Ideally, I would like to use the data from the intro form on the main page to populate the first three fields on the main form

  • [/list:o]

    Following Rowan's instructions here, here is what I've tried:
    [list=1]
  • Selected my "intro" form and clicked the CURL link

  • Selected the "bus_name", "bus_code", and "date_3" fields and put their names in again (since they have the same name on the new form)

  • No extra code

  • Enter the main form into the target url field and clicked save

  • Gone into the "intro" form and at the plugins tab, checked it and changed the value to 1
  • [/list:o]

    It redirects fine, but that's about it. Anyone have any thoughts?
    GreyHead 06 Apr, 2009
    Hi stmoist,

    You don't need curl to do this, keep both 'forms' in a single ChronoForms form but show a different set of inputs the second time it is viewed. You need a little PHP to control the flow but it's much easier than passing data through curl. If you set a value for the submit buttons you can use these to track which part of the form is being submitted and which page to show.

    Bob
    stmoist 06 Apr, 2009
    I think I understand what you're saying. Would the fact that I have slightly different layouts for the two forms preclude them being the same form displayed twice?
    Max_admin 07 Apr, 2009

    I think I understand what you're saying. Would the fact that I have slightly different layouts for the two forms preclude them being the same form displayed twice?


    No!

    Max
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    GreyHead 07 Apr, 2009
    Hi stmoist,

    Just to echo Max, No, not at all. You can set up multi-step forms using completely different pages. The advantage is that that the data from the previous step is readily available to display or to use to control the form items you show.

    Bob
    stmoist 08 Apr, 2009
    Thanks for the prompt replies, gentlemen! Is there any chance you can point me in the direction of a tutorial, or can think of a keyword that might help me in my forum search? I have searched the form quite extensively, and most of the posts regarding multiple page forms involve CURL.

    Thanks again!
    stmoist 09 Apr, 2009
    Thanks for the prompt rely, Max! You've got a heck of a product here, keep up the good work!
    Max_admin 10 Apr, 2009
    Thanks!🙂
    Max, ChronoForms developer
    ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
    ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
    This topic is locked and no more replies can be posted.