Jet\Form_Field_Search / Form_Field::TYPE_SEARCH

It represents a search form field.

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 does not match the expected format (for example, a regular expression).

Parameters

Parameter Type Required Meaning of
validation_regexp string ne Validating regular expression.

Methods

Method Meaning of
public setValidationRegexp(
string $validation_regexp
) : void
Sets a regular expression to control the data format.
public getValidationRegexp(
bool $raw=false
) : string
Returns the set regular expression to check the data format.
Previous chapter
Jet\Form_Field_Url / Form_Field::TYPE_URL
Next chapter
Jet\Form_Field_Color / Form_Field::TYPE_COLOR