Support » Plugin: Contact Form 7 » Form Action?

  • Resolved cyrjm

    (@cyrjm)



    This is beyond my scope of knowledge but I’m always up for a challenge. I have a client who has a contact form on their current site that automatically populate the form contents to his Salesforce.com account. I want to build a much nicer looking form on his new site but am wondering if I can accomplish the same thing with Contact Form 7? I looked on the author’s site but didn’t find a tutorial that seemed to cover what I’m looking for…can anyone point me to a tutorial perhaps? I’m not quite sure what I should even search for?

    Here’s the code that he gets from Salesforce:

    <!--  ----------------------------------------------------------------------  -->
    <!--  NOTE: Please add the following <META> element to your page <HEAD>.      -->
    <!--  If necessary, please modify the charset parameter to specify the        -->
    <!--  character set of your HTML page.                                        -->
    <!--  ----------------------------------------------------------------------  -->
    
    <META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8">
    
    <!--  ----------------------------------------------------------------------  -->
    <!--  NOTE: Please add the following <FORM> element to your page.             -->
    <!--  ----------------------------------------------------------------------  -->
    
    <form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">
    
    <input type=hidden name="oid" value="00D700000008Ta5">
    <input type=hidden name="retURL" value="http://(Jason- the thank you/confirmation page goes here)">
    
    <!--  ----------------------------------------------------------------------  -->
    <!--  NOTE: These fields are optional debugging elements. Please uncomment    -->
    <!--  these lines if you wish to test in debug mode.                          -->
    <!--  <input type="hidden" name="debug" value=1>                              -->
    <!--  <input type="hidden" name="debugEmail" value="reid@vitalopps.com">      -->
    <!--  ----------------------------------------------------------------------  -->
    
    <label for="first_name">First Name</label><input  id="first_name" maxlength="40" name="first_name" size="20" type="text" /><br>
    
    <label for="last_name">Last Name</label><input  id="last_name" maxlength="80" name="last_name" size="20" type="text" /><br>
    
    <label for="company">Company</label><input  id="company" maxlength="40" name="company" size="20" type="text" /><br>
    
    <label for="phone">Phone</label><input  id="phone" maxlength="40" name="phone" size="20" type="text" /><br>
    
    <label for="email">Email</label><input  id="email" maxlength="80" name="email" size="20" type="text" /><br>
    
    <label for="description">Description</label><textarea name="description"></textarea><br>
    
    <input type="hidden" name="lead_source" id="lead_source" value="Website"> 
    
    <input type="submit" name="submit">
    
    </form>

    Thanks!

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Form Action?’ is closed to new replies.