• joel

    (@joelveloswordpress)


    Hello,

    I have site and I used CF7 not only once.At my homepage I have one CF7 that visitors can input at fields and I want it to pass to my second CF7 which is longer form than first but have the same field to the first CF7.In short,I want the fields from the first form need to be pre-filled into the second, longer form.

    For more clear just visit my site https://moveupwebclients.com/ffm/ and fill out the first form(FREE MOVING QUOTE) and you will redirected to second form(GET A MOVING QUOTE) and have same fields “MOVE FROM ZIP” and “MOVE SIZE”…and I want it pre-filled from first form.

    Thanks in Advance!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    I also would like to know if data can be passed from one form to another using contact form 7. The design I have in mind is such:-

    Form One would have a submit button that would populate a text field in Form Two with the page title. The idea is for customers to click an enquiry button from a product page (ie Form One) that would bring up another form (ie Form Two) with the page title already filled out in a text field. The reason this is required is because the products are code based and can become quite long and it would be difficult for customers to remember the codes but it would make life easier for the supplier to respond to enquiries by code names. Any advice or direction would be greatly appreciated. Hope someone can help!

    Hi folks, did any find a solution for this need? I need the same setup. Thanks

    HI squeaky,

    After posting my message and not getting any results I was determined to find some kind of solution. I did find something that helped though ended up using a different concept for the site i.e. information contained in a url link populating a text field. I don’t know if this is what you’re looking for but below is a link to the site that I used to setup this up.

    https://www.featheredowl.com/auto-populate-contact-form-7-input-fields-with-url-parameter/

    You’ll also need to install the Contact Form 7 Dynamic Text Extension plugin to make it work.

    Hi Jasi-au,

    Thanks for the reply and info.
    My situation was a bit different, but similar. I used the same plugins.

    I have 2 forms, the first form is a subset of the 2nd form.

    My user submits form 1(name,email,phone) and is redirected to form 2 with many more questions and the same fields from form 1. Form 2 is now populated with the fields name,email,phone from form 1.

    Here is what I did, perhaps this will help someone else.

    1. I read a forum post by the developer that mentioned how the form is reset before redirecting. He posted code to change that.
      I updated the script.js file to alter the reset.see this posting: https://www.ads-software.com/support/topic/plugin-contact-form-7-conditional-redirect?replies=15
    2. I added my redirect into additional settings on form #1
      on_sent_ok: "location = '/my-second-form?phone='+jQuery('#phone').val()+'&first-name='+jQuery('#fname').val()+'&last-name='+jQuery('#lname').val()+'&email='+jQuery('#email').val();"
    3. On form2 used dynamic text extension for the fields I needed to populate.
      [dynamictext* first-name id:first-name "CF7_GET key='first-name'"]
      https://www.ads-software.com/extend/plugins/contact-form-7-dynamic-text-extension/

    I am very new to working with WP, so it took me a while to figure it out. I hope my posting helps another – thanks again.

    Hey thanks for that. Very helpful info.

    Jasi_au

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[CONTACT FORM 7]: How to pass data to one CF7 field to another CF7 field’ is closed to new replies.