Creating Forms

by Etienne de Bruin | Last edited: 6/17/2008

The CMS provides a simple way for creating and using forms on your site.  It is a two step process which involves configuring the form in the control panel and then using the API to call that form from the client website.

Creating the Form

Form Builder Overview

Clicking on Connect -> Forms will take you to the Form Builder.  Create a Form.  In the Form create page you will have the option of specifying an e-mail address.  All form submits will be sent to this e-mail address. 

Once the form is created, click on 'edit fields' which will allow you to create the form fields.

 
Form Builder Fields

On the Field Edit screen, fields can added, moved around and given certain attributes. 

Placing the Form on Client Website

A very simple getContent or Monklet can be used to place the form on a client website:

getContent("form", "find:form-slug", "nocache");

Each form element will have a label and various hooks that can be used for styling. The form will have the same ID as the form slug.

Form Data & Results

Once the form is submitted the contents of the form will be e-mailed to the e-mail address configured when the form was created and the data will be stored at the CMS.

The form data can be accessed by clicking on 'view data'.

Extra Notes

  •  It is important to note that if a form is deleted in the Control Panel, all data will be deleted as well.