Formish Examples

Some interactive form examples:

Simple Fields

  • String -- A simple form with a single string field
  • Integer -- A simple form with a single integer field
  • Boolean -- A simple form with a single boolean field, defaults to a RadioChoice widget. Add a required validator if you want a checkbox widget.
  • Float -- A simple form with a single float field
  • Decimal -- A simple form with a single decimal field
  • Date -- A simple form with a single date field
  • Tuple -- A simple form with a single tuple field of string, integer form

Simple Fields with some options

File Fields

  • File -- A simple form with a single file field

Simple Widgets

  • Input -- Simple input field with a strip parameter
  • Input None Value -- Simple input field with a strip parameter and a substitue none_value (allows user to return a None and an empty string). Notice use of schema default value.
  • Input Date None Value -- Simple input field with a strip parameter and a substitue none_value (allows user to return a None and an empty string). Notice use of schema default value.
  • Hidden -- Hidden Field with a visible friend..
  • Password -- Password html widget with string
  • Checked Password -- Checked Password widget
  • Text Area Simple -- Simple text area
  • Text Area Cols And Rows -- Passing cols and rows to a text area
  • Text Area Strip -- Text area input with strip true

Default Values

Checkbox Widgets

Validation Examples

Select Widgets

Defaults

Multi Select Widgets

Structures

Sequences

Sequence of Structures (using javascript)

Customised, Granular Form Layout

Example from Formish Docs for embedding in Restish