PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.0.5
JetFormBuilder — Dynamic Blocks Form Builder v3.0.5
3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 All 130 releases
jetformbuilder / includes / request / fields / text-field-parser.php

text-field-parser.php in JetFormBuilder — Dynamic Blocks Form Builder 3.0.5, at includes/request/fields/text-field-parser.php

21 lines 410 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 namespace Jet_Form_Builder\Request\Fields;
5
6 use Jet_Form_Builder\Request\Field_Data_Parser;
7
8 class Text_Field_Parser extends Field_Data_Parser {
9
10 public function type() {
11 return 'text-field';
12 }
13
14 protected function has_error(): bool {
15 $type = $this->settings['field_type'] ?? 'text';
16
17 return ( 'email' === $type && ! is_email( $this->value ) && parent::has_error() );
18 }
19
20 }
21