Hello, in the code below I have an HTML input which should accept only numbers. The functionality works in Chrome and Edge browsers, but when the page is loaded in the Webviewer component, any keys get accepted. Seems the onlyNumberKey function is not triggered. Any workarounds ?
"input type="text" name="value2" id="value2" min="10" max="99999999" autocomplete="off" > required maxlength="7" onkeydown="return onlyNumberKey(event)" />
function onlyNumberKey(evt) {
var ASCIICode = (evt.which) ? evt.which : evt.keyCode
if (ASCIICode > 32 && (ASCIICode < 48 || ASCIICode > 57))
return false;
return true;
}