WordPress.org

Ready to get started?Download WordPress

Forums

Get info from one page and put it into Contact Form 7 (2 posts)

  1. crushl
    Member
    Posted 2 years ago #

    Hi everyone,

    Would be so so grateful for any help.

    Basically I have multiple products listed on a page, each product has a button next to it saying 'add to quote'. I want the product name to then automatically be placed into a form using contact form 7 on another page. I am using Contact form 7 and have installed Contact Form 7 Dynamic Text Extension.

    I have never learnt coding properly but am a little self taught. How do I do this? There have been mentions of this issue online but most of it is too advanced for me.

    Any help would be much appreciated. I have been trying to do something with CF7_GET key='value' but I don't think I am doing it correctly.

    Please help!

  2. tharpa.osang
    Member
    Posted 2 years ago #

    You need to be sure to pass the variable in the link to the form, as in:
    <a href="www.mycompany.com/myCF7form?prodname=someproduct">Add to quote</a> - that may require changes to your product list to add that info to the generated url

    then, when you create the form, use a dynamictext field for the productname:

    [dynamictext productname "CF7_GET key='prodname' "]

    then CF7 / Dynamic Text will take the data from the field sent along with the url, and add it into your form

    you may or may not wish to make the field editable when you create it in CF7

Topic Closed

This topic has been closed to new replies.

About this Topic