Creating Forms

How to create custom forms in CommonSpot

Prerequisites

This tutorial assumes you are familiar with the following:

Overview

Forms can be used to get information emailed to you from website users. 

Before creating a form, make a list of the essential information you would like to receive. Try to make the form as short as possible, and keep the multiple-choice questions to a minimum. People are less likely to fill out long forms.

Related reading:

Setting Up the Form

  1. Navigate to the page you would like to put the form on.
  2. Go to Author or Edit mode.
  3. Insert the Simple Form element (in the Miscellaneous category).
  4. Click to define the Simple Form Element
  5. Select "Create new simple form"
  6. Name the form (letters and numbers only, no spaces or special characters).
  7. Provide one or more email addresses, separated by commas, that the form data will be sent to.
  8. Sender's email address checkbox: If this is checked and a user is logged in to the website, the email will look like it was sent from that person. Otherwise, it uses the anonymous email address below.
  9. Anonymous sender's email address: This is what the "From" field will be in the emails sent by this from. The web team usually uses 'cinweb@stlouis-mo.gov.'
  10. Form action: After the user submits a form, you can either display some custom text (the first option), or you can send them to another page (the second option).
  11. Press "Save."

This will bring you back to your page, and the form element will still be blank, like in the image below. 

Blank form element

Field Basics

You have set up the basics for the form, but now you need to add some form fields for people to fill out.

  1. Click on the yellow box with the plus sign to edit the element, then click on "Edit fields."
  2. This brings you to the form's list of fields. Click "Add new field."
  3. Select a field type from the drop-down box.

Each field has a:

  • Name: No special characters or spaces (users won't see this).
  • Label: Short descriptive text to the left of the field.
  • Description (optional): Just in case the field needs extra explaining. Shows up below the field.
  • Required: Yes/No. If you select "Yes" then people will be forced to fill it out before submitting the form.
  • Default value (optional): A value that shows up in the field by default. This is under the "Other Properties" tab.

Once you are done, click the "Create" button.

Add as many fields as you need, then press "Close." When you are satisfied with your form, submit the element to be published, then go through and submit the form to test it out.

Common Field Types

Text-Related Fields

Text: Used to collect short bits of text. The label for this field is bold, indicating that it's required.

Example of a text form field

Small Text Area: For collecting longer bits of text, it's nice to give people more room to type.

Small text area example

Large Text Area: A bit bigger than the Small Text Area.

Example of a large text form field

Email: Looks like a text field, but checks to make sure they entered a proper email address.

Example of an email form field

Date: Again, looks like a text field, but it forces the user to enter a date in the format MM/DD/YY.

Example of a date form field

Number (float) and Number (integer): Floats allow decimals, like 5.234, and integers just allow whole numbers (no decimals).

Example of a number (float) form field

Choice-Related Fields

Check Boxes: Use these for yes/no answer questions.

Example of a check box form field

Radio Buttons: For multiple-choice questions (limit one answer).

Example of radio buttons in a form

Selection List: For multiple-choice questions (can be set to allow multiple answers).

Example of a select list form field

 

Was this page helpful?      



Comments are helpful!
500 character limit

Feedback is anonymous.