Jet\Form_Field_Color / Form_Field::TYPE_COLOR

Presents a form field for color selection.

The Jet\Form_Renderer_Field_Input_Common renderer is used to display the form field itself.

Default error codes

Code Meaning of
Form_Field::ERROR_CODE_EMPTY The field is marked as required and the value is not specified.
Form_Field::ERROR_CODE_INVALID_FORMAT The value entered is not a valid color code. The color code in the same style as in CSS, e.g: #c9c9c9
Previous chapter
Jet\Form_Field_Search / Form_Field::TYPE_SEARCH
Next chapter
Jet\Form_Field_Select / Form_Field::TYPE_SELECT