Skip to main content

Contact Form Web Part

Description

Collect contact information and/or feedback through a form, secured by reCAPTCHA—a simple Turing test that prevents spam. Many of the form fields can be optional or required, depending on setup. The form content is emailed with a custom subject line and from address, all set up in the web part’s properties.

Requirements

SharePoint 2010 , Twitter Bootstrap v2+

Features

  • Customize Mail Settings
    Set comma separated email addresses to mail form content to, a custom email Subject line, and a custom From email address.
  • Form Fields and Requirement St​atus
    Add any of the following: Company, Full Name, First Name, Middle Name, Last Name, Email, Address 1, Address 2, City, State (with dropdown), Zip, County, Country (with default), Phone, Subject Line, and Comments. Most fields can be marked as required, which will prevent the form from being submitted until the required fields are completed.
  • Thank You Message
    Add a custom thank you message to be shown after the user has submitted the form.

Setup

Notification Settings

This web part has 3 main components. Set up the web part in the following order:

  1. Enter a Recipient email address or comma-separated line of multiple email addresses
  2. Enter a custom Subject Line for the email
    • Appears as the Subject Line of the email sent. The subject field in the form will appear in the body of the email.
    • Ex: Company Website Contact Form
  3. Enter an email which will appear as the Sender
Field Display/Required Selection

This web part has 15 main components. To enable a field, check Display. To have the field be required, check Required.

Available Fields
Company, Full Name, First Name, Middle Name, Last Name, Email, Address 1, Address 2, City, State (with dropdown), Zip, County, Country (with default), Phone, Subject Line, Comments

Thank You Message

Enter a custom thank you message to be displayed after the form is completed.

Ex: Thank you. Your message has been successfully sent.

Common Use Scenario

Collect First Name, Last Name, Email Address (required), County, and Comments and have the information sent to YOUR Webmaster with the Subject Line contact Information from Website, using a no-reply email address. The Thank You Message should read Thank you. We look forward to replying to your message!
Setup
    1. Create a new page.
    2. Click Add a Web Part in any of the web part zones.
    3. Add the ContactUs web part.
    4. Click the down arrow in the upper-right corner of the web part and choose Web Part Properties.
    5. In the Web Part Properties enter webmaster@agency.gov as the Recipient, no-reply@agency.gov as the From Address, and Contact Information from Website as the Subject Line.
    6. Check Display for First Name, Last Name, Email Address, County, & Comments.
    7. Check Required for Email Address.
    8. Enter Thank You! We look forward to replying to your message! in the Thank You message box.
    9. In the Web Part Properties click OK.
    10. Publish your page.

​Example

The form below is an example. Always introduce your form to cover any particulars you anticipate a user to have questions about, such as what type of information to leave in the comments box.​​
 
 
 
  

Example: 502-875-3733

  

Example: example@kentucky.gov