Contact Form 7 Dynamic Text Extension
[resolved] Get the value of a field on a 1st page into the field of a 2nd page (8 posts)

  1. digibuze
    Posted 1 year ago #


    how can I get into a field of my form as a default value (like a placeholder), the value of a field that was filled out in a previous page.

    e.g: A CF7 field asks me to enter my email address to subscribe a newsletter. Once I submit it, I land on another page with a more precise CF7 form, where the email address field contains already the address I previously entered.

    Thank you for your help


  2. digibuze
    Posted 1 year ago #

    So, I found out how to get the value from my into my dynamic field. Now my last concern is about the url itself. I don't know how to redirect the first form to a page with a dynamic url like "http://www.my-site.com/email=email_entered" ?

    Thank you

  3. pobrecht
    Posted 1 year ago #

    So how did you get the value of one field into the field on the next page (see my post just before yours)?

  4. digibuze
    Posted 1 year ago #

    Hi Pobrecht,

    very easily. I just used a dynamic text field on the second form looking like this: [dynamictext* your-email id:your-email "CF7_GET key='your-email'"] just as it was explained in the plugin guide: http://wordpress.org/plugins/contact-form-7-dynamic-text-extension/
    The field is filled out with the xxx value in: "http://www.my-site.com/?your-email=xxx

    My main problem still remains however, because there's nothing mentioned about passing the value of a field in form 1 to the url of the landing page...

    Thanks for the savior who will have the answer :)

  5. sevenspark
    Plugin Author

    Posted 1 year ago #

    Hi digibuze,

    Glad to hear you got the first part sorted :)

    I'm not sure I exactly understand your second question.

    With HTML forms, the page that is redirected to dictated by the action attribute on the form element. If the method is "GET", the values in that form will be submitted as part of that URL. For example, if the action="http://mysite.com/contact" and there is an input with the name email and value me@gmail.com, the form would submit to the URL:


    With CF7, since it's an AJAX form, the page does not redirect by default, however. Though you can force it to redirect as shown here: http://contactform7.com/redirecting-to-another-url-after-submissions/

    That being said, I'm not sure if the submitted params will be intact (probably not) - so it might be better to submit from a normal (non-CF7) form to the page with the CF7 form instead.

    Hope that makes sense! :)


  6. digibuze
    Posted 1 year ago #

    Hey Chris,

    thanks a lot for your help.
    Yes, it totally makes sens, but I finally found out another solution which did not consist of using a CF7 form form my first step field. I did it using a form action with the get method. The render is of course exactly the same and it was much easier to handle ;)

    Thanks again anyway

  7. sevenspark
    Plugin Author

    Posted 1 year ago #

    You're welcome

  8. duddlebug
    Posted 11 months ago #

    How would I do this on the same form. I like to have it auto add what ever filed I have twice.

    like clients name I have it posted twice on my form at different spots once they fill out their name on top it will about fill out on the second one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7 Dynamic Text Extension
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.