WordPress.org

Support

Support » Themes and Templates » Create a variable from Contact Form 7

Create a variable from Contact Form 7

  • Okey doke, I hope someone can help here. I want to gather some fields from contact Form 7 but instead of generating an email I want to use those fields to create a single variable called “xml” which I can pass to another url. So if I create the form to gather firstname, lastname and state (the stuff inside search parameters) how can I peal that data from the form and create a single variable that looks like the text below. I’d like to modify the contact form so that this takes place when the user hits the “send” button (which I’ll change of course). I’m assuming this will require some javascript code but I’m not sure how to code it or where to put it. Any help is welcome.

    Ideally once this varible is created it will be passed in for form of “SomeOtherPage.cfm?xml”. Then hopefully I parse the response and display the results to the user.

    <FDSRequest>
    <username>username</username>
    <password>password</password>
    <sType>GNMAR</sType>
    <detail>1</detail>
    <testmode>true</testmode>
    <searchParams>
    <firstName>John</firstName>
    <lastName>Doe</lastName>
    <state>FL</state>
    </searchParams>
    </FDSRequest

  • The topic ‘Create a variable from Contact Form 7’ is closed to new replies.
Skip to toolbar