checkBox

Purpose

Creates a checkbox form field. All the usual HTML elements apply.

Examples

<g:checkBox name="myCheckbox" value="${true}" />

Description

Attributes

The checkBox tag typically only requires the name and value attributes and will infer whether the checkbox should be checked or not from the value. However, if you need to override this behaviour the checked attribute can be used for fine grained control.

Source

Show Source