I have a requirement to limit the maxlength of an integer field to 10 digits. But it seems like if we bind the type to integer, the maxlength is not working for input field.
<xforms:bind id="int-field" nodeset="instance('prepop')/type/int-field" type="xs:integer"/>
<xforms:input bind="int-field" xxforms:maxlength="10">
<xforms:alert>Required</xforms:alert>
</xforms:input>
And if I remove that type="xs:integer" from the bind, the maxlength works fine.
Please suggest me an alternative?