function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

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:
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">
                            <div class="help-block with-errors"></div>
                      <div class="form-group">
                        <button type="submit" class="btn btn-primary">Submit</button>