Jet\Form_Field_Url / Form_Field::TYPE_URL
Represents the form field for the URL.
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 | Meaning of |
|---|---|
| validation_regexp | Validating regular expression. |
Methods
| Metoda | Význam |
|---|---|
| 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. |