+ Start a Discussion
ikamsfikamsf 

type email for <apex:input> not recognized.

type email for <apex:input>The documentation says that type="email" is available to use for <apex:input> when the field is not a salesforce standard object. That is exactly the case for me and I have the code below, but I am getting the error message: Unable to validate type 'email': data type not provided.

This link says email is a valid type:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_input.htm
Could somebody please help? Thanks.

 
<div class="form-group">
                            <apex:outputLabel for="inputEmail" styleClass="control-label">Email</apex:outputLabel>
                            <apex:input type="email" styleClass="form-control" id="inputEmail" html-placeholder="Email" html-data-error="The email address is invalid" required="true">
                            </apex:input>
                            <div class="help-block with-errors"></div>
                          </div>
                     
                      <div class="form-group">
                        <button type="submit" class="btn btn-primary">Submit</button>
                      </div>