As the title suggests: how do i get the numeric keypad to show up in a K2 smartform when the datatype is integer. I found that in html it will need the type=number attribute however i need to know how to get this done from K2.
As the title suggests: how do i get the numeric keypad to show up in a K2 smartform when the datatype is integer. I found that in html it will need the type=number attribute however i need to know how to get this done from K2.
Best answer by StevenBrown
You can change the input type using javascript. Using the DOM explorer, get the ID of the textbox. Then in a hidden literal data label, make an expression with the javascript below replacing the element ID with the one you found.
<script type="text/javascript">
document.getElementById('000000*personal details removed*0000_422e535a-13*personal details removed*d9-43*personal details removed*d34d50b3e7').type = 'number';
</script>
I think it would be better as a supported feature of smartforms.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.