Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • A good solution is to use “Id” in Contact Form 7 values.

    1. Set up an html form that will pass variables

    <form action="URL_TO_CONTACT_FORM_7_PAGE" method="get">
    <select name="YOUR_VALUE" id="YOUR_VALUE">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </form>

    2 Set up a Contact Form 7 element with “id”:

    [select YOUR_VALUE id:YOUR_VALUE
    "1"
    "2"
    "3"
    ]

    3. Use javascript on the page, and php (use exec php plugin or similar to execute php code)

    [CONTACT FORM 7 TAG]
    
    <script type="text/javascript">
     document.getElementById('YOUR_VALUE').value = "<?php echo $_GET['YOUR_VALUE'];?>";
    </script>

    See it in action here:
    https://www.crowleyautotransport.com/

    A good solution is to use “Id” in Contact Form 7 values.

    1. Set up an html form that will pass variables

    <form action="URL_TO_CONTACT_FORM_7_PAGE" method="get">
    <select name="YOUR_VALUE" id="YOUR_VALUE">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </form>

    2 Set up a Contact Form 7 element with “id”:

    [select YOUR_VALUE id:YOUR_VALUE
    "1"
    "2"
    "3"
    ]

    3. Use javascript on the page, and php (use exec php plugin or similar to execute php code)

    [CONTACT FORM 7 TAG]
    
    <script type="text/javascript">
     document.getElementById('YOUR_VALUE').value = "<?php echo $_GET['YOUR_VALUE'];?>";
    </script>

    See it in action here:
    https://www.crowleyautotransport.com/

    A good solution is to use “Id” in Contact Form 7 values.

    1. Set up an html form that will pass variables

    <form action="URL_TO_CONTACT_FORM_7_PAGE" method="get">
    <select name="YOUR_VALUE" id="YOUR_VALUE">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </form>

    2 Set up a Contact Form 7 element with “id”:

    [select YOUR_VALUE id:YOUR_VALUE
    "1"
    "2"
    "3"
    ]

    3. Use javascript on the page, and php (use exec php plugin or similar to execute php code)

    [CONTACT FORM 7 TAG]
    
    <script type="text/javascript">
     document.getElementById('YOUR_VALUE').value = "<?php echo $_GET['YOUR_VALUE'];?>";
    </script>

    See it in action here:
    https://www.crowleyautotransport.com/

Viewing 3 replies - 1 through 3 (of 3 total)