How to create and use contact forms

Getting started

There are a few things in life that are inevitable: one is tax returns and the other is that your site will need a form.

Forms are notably useful and they come in different shape: lead generation, lead qualification, contact, feedback, order taking, etc.

In this guide, you’ll find how to create and setup contact forms in your Statictastic account.

This guide assumes that you have:

Introduction

In Statictastic, forms are global. Global? yes! You can create a “Contact form” and use it on different sites. The same goes for all kinds of forms in Statictastic because they are not attached to a specific site. It also means that a single site could have multiple forms (why not?).

Create Form

Visit the “Forms” section and click on the “Create” button:

Forms List

There are only three fields you need to fill:

  1. Name: used to help you to identify the form.
  2. Email: when a form is submitted, the content of the form will be sent to this email
  3. Redirect to: after users have submitted a form, they will be redirected to a specific URL (e.g. a thank you page).

Create Form

In the example above, you can see a “Sales Leads” form, which is going to be used to collect leads to a specific marketing campaign.

Click on the “Save” button to create your form. You’ll be redirected to the form list, which now will display your form in it:

Created Form

Using a form

Now that you have created a form, let’s make use of it. Visit the “Forms” section and click on the form you want to use. In our example, we are going to use the “Sales Leads” form:

Create Form

By default, you’ll see the “Submissions” section, which will list all the form submissions (additionally to sending them to the specified email) once users submit the form.

Go to the “Code” section, where you’ll find a code snippet to integrate into your site:

Code

Copy this code and paste it (if you are not a developer, you’ll probably need some help with this step) in the area you want to display the form in your site.

That’s it. Once the form is integrated, you’ll start receiving submissions by email and also will be able to see them in the “Submissions” section of the form.

As you can see, this form has three fields: Full Name, Email and Message. Those are the required fields, but you can add as marny fields as you want. Check the next section to know more about the requirements.

Requirements

Statictastic forms are quite simple to set up. There are a few requirements:

Field Naming

In our example we have three fields:

  1. statictastic[full_name]
  2. statictastic[email]
  3. statictastic[message]

Those fields are special because they are used by Statictastic to display information.

You can add as many fields as you need, the only requirement is that the field name follows the statictastic[NAME] format, where NAME is the name of the field you want to use. For example, you could define fields like:

All those fields will be processed and stored. If your form has other fields which do not follow the statictastic[NAME] format, they will be ignored.

Next steps