• Resolved puntoexe

    (@puntoexe)


    Hi guys,
    i’m trying to do a strange thing:
    i would like that when a user click on a button in a page “A”, he’s redirect to a page “B” with my CF7 with a field filled with a determined value.

    How can i put this value on the button?
    Your plugin can do it? In alternative, do you know any trick to do it?

    Thank you very much,
    have a good day

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m trying to do the same thing?? Have you worked it out at all??

    Plugin Author sevenspark

    (@sevenspark)

    Hi guys,

    You’d pass the value in the query string on your button.

    So if you want to link to the /contact page and pass the value “red” as a “color” variable, you’d set up a link like this:

    <a href="https://mysite.com/?color=red">Contact</a>

    Then in the contact form, you’d use add a dynamic form tag with the value

    CF7_GET key='color'

    to retrieve that color in your form.

    Hope that helps!

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fill a CF7 field by clicking a button’ is closed to new replies.