Introduction

This is a highlevel overview of available FormFields. An automatically generated list is available through our API Documentation.

Formatted Input

Date/Time

  • DateField: Represents a date in a textfield (New Zealand)
  • DatetimeField: Combined date- and time field
  • TimeField: Represents time in a textfield (New Zealand)

Structure

  • CompositeField: Base class for all fields that contain other fields. Uses <div> in template, but doesn't necessarily have any visible styling.
  • FieldGroup: Same as CompositeField, but has default styling (indentation) attached in CMS-context.
  • FieldSet: Basic container for sequential fields, or nested fields through CompositeField. Does NOT render a <fieldgroup>.

Actions

  • Form for more info
  • InlineFormAction: Render a button that will act as If you want to add custom behaviour, please set {inlcudeDefaultJS} to false and work with behaviour.js.
  • Image: Action that uses an image instead of a button
  • InlineFormAction: Prevents placement of a button in the CMS-button-bar.

Files

  • FileField: Simple file upload dialog.
  • FileIFrameField: File uploads through an iframe
  • Image: Image upload through an iframe, with thumbnails and file-selection from existing assets
  • SimpleImageField: SimpleImageField provides an easy way of uploading images to Image has_one relationships. Unlike ImageField, it doesn't use an iframe.

Relations

Dataless/Utility

CMS Field Editor

Please see fieldeditor for in-depth documentation about custom forms created through a GUI in the CMS.

 
form-field-types.txt · Last modified: 2010/05/06 23:02 by netnoise

Please use comments for notes, tips and corrections about the described functionality.
Use the Silverstripe Forum to ask questions.

blog comments powered by Disqus
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Creative Commons LicenseSilverStripe Documentation by SilverStripe is licensed under a Creative Commons Attribution 3.0 New Zealand License.
Based on a work at doc.silverstripe.com
Recent changes RSS feed Driven by DokuWiki