Form Issues related to Salesforce

Out of context: Reply #3

  • Started
  • Last post
  • 6 Responses
  • ChickenCrab0

    --------------------------------...
    This is our form code.
    --------------------------------...

    <!--- BEGIN FORM --->
    <cfform id="contactForm" name="contactForm" method="post" action="#CGI.SCRIPT_NAME#">
    <table id="form_table">
    <tr>
    <td>
    <!--- Name --->
    <cfinput
    class="form_area"
    type="text"
    name="Name"
    id="Name"
    required="yes"
    message="Please enter your name."
    value="#Trim(FORM.Name)#" /><br />
    <label>Name*</label></td>
    <td>
    <!--- Company --->
    <cfinput
    class="form_area"
    type="text"
    name="Company"
    id="Company"
    required="yes"
    message="Please enter your company's name."
    value="#Trim(FORM.Company)#" /><br />
    <label>Company*</label></td>
    </tr>
    <tr>
    <td>
    <!--- Email --->
    <cfinput
    class="form_area"
    type="text"
    name="Email"
    id="Email"
    required="yes"
    validate="email"
    message="Please check that you entered your email address and that it is valid."
    value="#Trim(FORM.Email)#" /><br />
    <label>Email*</label></td>
    <td>
    <!--- Phone --->
    <cfinput
    class="form_area"
    type="text"
    name="Phone"
    id="Phone"
    required="no"
    message="Please enter your phone number."
    value="#Trim(FORM.Phone)#" /><br />
    <label>Phone</label></td>
    </tr>
    <!--- Checkboxes --->
    <tr>
    <td colspan="2"><div class="form_subhead">I am interested in the following product offering(s):</div></td>
    </tr>
    <tr>
    <td>
    <label><input type="checkbox" name="Products" value="Brand Development" />Brand Development</label><br />
    <label><input type="checkbox" name="Products" value="Market Planning" />Market Planning</label><br />
    <label><input type="checkbox" name="Products" value="Creative Services" />Creative Services</label>
    </td>
    <td>
    <label><input type="checkbox" name="Products" value="Web Services" />Web Services</label><br />
    <label><input type="checkbox" name="Products" value="Public Relations" />Public Relations</label><br />
    &nbsp;
    </td>
    </tr>
    <tr>
    <td colspan="2">
    <!--- Comments --->
    <cftextarea
    class="form_area2"
    name="Comments"
    id="Comments"
    rows="6"
    cols="15"
    required="no"
    message="Please enter a comment.">
    <cfoutput>#Trim(FORM.Comments)#</cfoutput></cftextarea><br />
    <label>Comments</label></td>
    </tr>
    <tr>
    <td>
    <!--- Hidden field with CAPTCHA VALUE --->
    <cfinput
    type="hidden"
    name="hashVal"
    id="hashVal"
    value="#rndHash#">
    <!--- Image holding CAPTCHA VALUE --->
    <cfimage
    action="captcha"
    fontsize="24"
    fonts="Arial"
    width="200"
    height="50"
    text="#rndString#"></td>
    <td><div class="required">AREAS MARKED WITH AN ASTERISK (*) ARE REQUIRED.</div></td>
    </tr>
    <tr>
    <td class="bottom_row">
    <!--- capText text input - REQUIRED --->
    <cfinput
    class="form_area"
    type="text"
    name="capText"
    id="capText"
    required="yes"
    message="The captcha text does not match the image. Please check it again and remember that it is case sensitive." /><br />
    <label>Captcha Text* (case sensitive)</label></td>
    <td class="bottom_row" align="right">
    <!--- Hidden field used to tell server to process form --->
    <cfinput
    type="hidden"
    name="doForm"
    id="doForm"
    value="true">
    <div class="special">
    <input
    type="text"
    name="moreInformation"
    id="moreInformation"
    value="More information here!" />
    </div>
    <!--- Submit button --->
    <cfinput
    class="submit_button"
    type="submit"
    name="Submit"
    id="Submit"
    value="SUBMIT" /></td>
    </tr>
    </table>
    </cfform>
    <!--- End ColdFusion Form --->
    <!--- Show the form results if showForm is set to false --->
    <cfelse>
    <cflocation url="/thanks_contact.cfm">
    </cfif>
    <!--- END FORM --->

View thread