• Getting Started
  • Tutorials
  • Developer Guides
    • Model and Databases
    • Templates and Views
    • Controllers
    • Forms
      • Introduction to Forms
      • Form Validation
      • Form Templates
      • Form Security
      • Form Transformations
      • Tabbed Forms
      • Field Types
      • How To's
    • Configuration
    • Extending SilverStripe
    • Testing
    • Debugging
    • Performance
    • Security
    • Email
    • Integration and Web Services
    • Search
    • i18n
    • Files
    • Customising the Admin Interface
    • Execution pipeline
    • Command Line Interface
    • Cookies and Sessions
  • Upgrading
  • Changelogs
  • Contributing
  1. Developer Guides
  2. Forms
Version 3End of Life

This version of Silverstripe CMS will not receive any additional bug fixes or documentation updates.

Go to documentation for the most recent stable version

On this page

  • FormField Documentation
  • How to's
  • API Documentation

The Form class provides a way to create interactive forms in your web application with very little effort. SilverStripe handles generating the correct semantic HTML markup for the form and each of the fields, as well as the framework for dealing with submissions and validation.

Introduction to Forms

An introduction to creating a Form instance and handling submissions.

Form Validation

Validate form data through the server side validation API.

Form Templates

Customize the generated HTML for a FormField or an entire Form.

Form Security

Ensure Forms are secure against Cross-Site Request Forgery attacks, bots and other malicious intent.

Form Transformations

Provide read-only and disabled views of your Form data.

Tabbed Forms

Find out how CMS interfaces use jQuery UI tabs to provide nested FormFields.

FormField Documentation#

How to's#

How to Encapsulate Forms

Learn how to move a form from a controller into its own class definition.

How to Create Lightweight Form

Create a simple search form with Silverstripe CMS

Create a GridField Component

Customise your GridField with a variety of add-ons.

Create a GridField action provider

Handle custom actions on your GridField

Simple contact form

Create a form that submits a message via email

API Documentation#

  • Form
  • FormField
Edit on GitHub