Developers · Forms
Using Forms Introduction
Last updated 7 November 2026
Just like in every web application, HTML forms are essential in Insites. Because using plain HTML forms can get difficult to maintain with complex data structures, Insites has multiple tools that make working with forms much more manageable.
Prerequisites
To follow this tutorial, you must understand the following topics:
Basic concept
Form configuration is defined as Liquid files and is located within the
If you develop your code as a module, the
If your code is not a module,
Each file is divided into two sections: configuration and implementation.
- Configuration section
This section is placed at the top of the file and marked with three dashesat the start and end of the section. It is a definition written in YAML that tells the platform to create/update the form endpoint with the given name and settings. These settings determine where to store and how to validate the data. Head to the Form Configuration Options section for a full list of configuration options.
- Implementation section
This section is the part that accepts HTML, Liquid Markup, and all the other functionalities made possible with Insites. This section is used to construct the form displayed to users. You can create the form in HTML, but using thetag handles many tasks behind the scenes and makes it easier to write clean code. Learn more about it in the Rendering Forms tutorial.
Important
Forms can be easily created and inserted in to your web application using the Instance Admin via the no code form builder. Please visit the following resources for more details:
Minimal form example
Every form configuration is strictly connected with the resource that can be a static class predefined by Insites or a dynamic record. A basic example of a form that enables users to create an object in a Table named 'Car' and accepts one property called 'color' would look like this:
app/forms/car_form.liquid
---
name: car_form
resource: car
fields:
properties:
color: {}
---
{% form %}
<input name="{{ form.fields.properties.color.name }}" />
<button>Save</button>
{% endform %}As mentioned, the file is split into two sections. In the configuration part, you define the
In the implementation part, the form tag generates the HTML
To display the form within a page, use the include_form tag that accepts the name of the form that you want to display:
app/views/pages/car.liquid
{% include_form "modules/minimal_form/car_form" %}Now head to the
Important
The Form Builder in the Instance Admin lists every form on the instance, including forms you deploy from code. Forms you build in the Form Builder are saved under
Please refer to our documentation on the Form Builder for more information on building Forms using the Instance Admin.