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.
To follow this tutorial, you must understand the following topics:
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.
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:
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 'colour' would look like this:
app/forms/car_form.liquid
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
Now head to the
Forms that are generated using the Form Builder are visible within the Instance Admin interface. Conversely, Forms created locally (such as through an IDE) are unable to utilise the features and functionalities offered by the Form Builder.
Please refer to our documentation on the Form Builder for more information on building Forms using the Instance Admin.
Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.