Developers · Forms
Building a Contact Form
Last updated 1 November 2026
This guide discusses the process of building a contact form with the help of the Databases and Form Builder.
Prerequisites
To follow the steps in this tutorial, you must understand how to use Liquid, YAML, and GraphQL. In addition, you must learn how to interact with Modules on Insites.
Steps
Building a contact form is a four-step process:
- Step 1: Create a database for the messages
- Step 2: Build the form
- Step 3: Embed the form on a page
- Step 4: Read the submissions and add an email notification
Step 1: Create a database for the messages
In the Instance Admin, select Data on the main menu, then Databases, and click Create Database. Name the database
Step 2: Build the form
Select Forms on the main menu, then All Forms, and click Create Form. On the Details tab, enter a form name, for example
Step 3: Embed the form on a page
Open the saved form and select the Form Code tab. It gives you two snippets to copy.
Add the first snippet to the <head> section of your page or layout. It loads the form styles and scripts, and it ends with this line:
{%- include 'modules/insites_forms/form_code' -%}Insert the second snippet where the form should appear on the page. It uses the form path, for example:
{%- include_form 'modules/ins_forms/contact_us' -%}Step 4: Read the submissions and add an email notification
Each submission is saved as an item in the
To send an email when someone submits the form, open the form and add a notification on the Email Notifications tab.