Hi Gurus,
I have few prompts in my prompt page few value prompts and two textbox prompts.
The requirement is to restrict the user from entering any negative value/characters in text box.
This requirement has been achieved through JAVA SCRIPT.
The user also wants value prompts(LIST Box) to be cascading prompts.That has been done with the use of a reprompt button.
So when the user click on the reprompt button after that he/she can is able to enter charaters/negative values in textboxes.
But this should not happen.
In a nutshell the user is restricted to enter any characters/negative values in textboxes.But after hitting the reprompt button he/she is able to enter any characters/-ve values in textboxes.
Can you pls suggest me how to restrict the user from entering characters/negative values even after hitting the reprompt button.
JAVA Script Code:
<script type="text/javascript">
getFormWarpRequest()._textEditBoxTgtAge.onkeydown = function keyCheck(e){
var key = window.event.keyCode;
if( (key > 47 && key < 58) || (key == 46 || key == 8 || key == 13 || key == 37 || key == 38 || key == 39 || key == 40)) {
return true;
}else{
return false;
}
}
</script>
Thanks a lot in advance!!!
Pls help me with this!!!