Tailor Starter Documentation
Get ThemeOctober CMS DocsGitHub
  • Getting Started
  • Pages
    • Blocks
      • Hero Section
      • Section
        • Advanced Tab
        • Content Column
        • Buttons Column
        • Image Column
        • Posts Column
        • Events Column
        • Products Column
        • FAQs Column
        • Form Column
        • Search Column
      • Posts Section
      • Events Section
      • Products Section
      • Form Section
      • FAQs Section
      • Search Section
      • Creating Blocks
      • Editing Blocks
  • Menus
    • Main Menu
    • Secondary Menu
    • Social Menu
  • Blog
    • Posts
    • Authors
    • Categories
  • Events
  • Shop
    • Products
    • Product Categories
    • Product Properties
    • Orders
    • Cart
  • FAQs
  • Forms
    • Submissions
  • Search
  • Icons
  • Settings
  • Editing Blueprint Files
  • Seed Data
Powered by GitBook
On this page
  • Introduction
  • Form Entry Properties
  • Template Files
  • Partials
  • Blueprints
Edit on GitHub

Forms

PreviousFAQsNextSubmissions

Last updated 2 years ago

Introduction

The Forms entry type is used to generate submittable forms with reCAPTCHA support. The field types are generated by the blueprint type.

It includes a form builder with various fields to create and customize form fields. It includes options to set labels, slugs, field types, placeholders, and validation rules. It also allows for setting a success message, enabling reCAPTCHA spam prevention and notifications, and adding recipients for the form.

Form Entry Properties

Forms fields have the following options:

  • Field Label: Used to display a label before the input field

  • Field Slug: Used for form submissions

  • Field Type:

    • Text (Simple Text Field)

    • Multi-line Text (<textarea>)

    • Checkbox

    • Dropdown (<select>) with options

    • File (File Upload)

  • Placeholder (Text inside the field)

  • Validation (Enable Field Validation)

    • Required

    • Email (Checks if the value in the field is an email)

    • Numeric (Checks if the value in the field is numeric)

    • Phone (Checks if the value in the field is a phone number)

    • Image (Checks if the file is an image, pairs well with File upload)

    • Regular Expression (Advanced). See

    • Custom Rule (Advanced). See

  • Field Width

Regex Validation

This validation type allows you to use regular expression to validate the field. If you know regex, you can use it to validate the text. This gives you more power to validate fields.

There's also a note to anyone (particularly clients) to let them know that this is advanced behavior.

Custom Rules

This validation type allows you to specify custom rules to validate the fields. If you're familiar with Laravel Validation, you can use this to give you more power to validate form fields.

There's also a note to anyone (particularly clients) to let them know that this is advanced behavior.

It works by taking the string from the custom rule field and splitting it at the : if there is one.

Template Files

The files below are used to display content throughout the site. Below is an explanation of what each file does and how things are rendered.

Partials

tailor_modules/form.htm

Blueprints

builder/form/*

To see a list of available validation rules, See the

is used in the block and the block.

are used to render the top level Section blocks in the Dynamic Page Builder

October CMS Validation Documentation
This file
Form Section
Form Column
These files
form.yaml
Regex Validation
Custom Rules