0
I have a text field that receives the CPF, it has a CPF mask, but as it is a text field, in Mobile it does not open directly on that number pad and when I change its type to number, it only writes the first 3 digits and erases everything when it arrives at "." field formatting.
<html>
<div class="form-separador">
<input type="text" class="input1" id="cpf" name="cpf"
placeholder="000.000.000-00" value="%%=v(@Cpf)=%%" required >
</div>
</html>
$(document).ready(function(){
$('#cpf').mask('000.000.000-00', {reverse: true});
});
I changed the input type "input type="tel"" in HTML, as I said. That way, it started accepting digits as "." or "-" and still opens directly the numeric field. Thanks!!!
– Juan Lima