I am using FormBuilder 0.7.3 on CMSMS 1.11
This has only started with the latest Formbuilder. It is now using HTML 5 http://www.w3.org/TR/html-markup/input.email.html
This is great but my webpages are not HTML5 compliant and I am using a different doctype at the moment so this breaks validation.
See below. Can this be made into an option so people can choose based on their doctype.
The offending code is here
Code: Select all
/modules/FormBuilder/classes/FromEmailAddressField.class.php
function GetFieldInput($id, &$params, $returnid)
return $mod->fbCreateInputText($id, 'fbrp__'.$this->Id,
($this->HasValue()?htmlspecialchars($this->Value, ENT_QUOTES):$default),
25,128,$html5.$js.$this->GetCSSIdTag(),'email');
Code: Select all
Line 503, Column 110: value of attribute "type" cannot be "email"; must be one of "text", "password", "checkbox", "radio", "submit", "reset", "file", "hidden", "image", "button"…Address (*)</label><input type="email" name="m525a2fbrp__74" value="" size="2…
✉
The value of the attribute is defined to be one of a list of possible values but in the document it contained something that is not allowed for that type of attribute. For instance, the “selected” attribute must be either minimized as “selected” or spelled out in full as “selected="selected"”; a value like “selected="true"” is not allowed.