Limit the number of characters entered in a text prompt
Place a JavaScript HTML item after the text box prompt Steps:
Create prompt page Add a text box prompt to prompt page Add an HTML object to
the right of the text box prompt object Add the JavaScript below to the HTML
item For 8.1 and 8.2 use this script:
<script>
// The ASDF here comes from the Name property of the prompt
document.forms['formWarpRequest'].elements['_textEditBoxASDF'].maxLength = 3;
</script>
// The ASDF here comes from the Name property of the prompt
document.forms['formWarpRequest'].elements['_textEditBoxASDF'].maxLength = 3;
</script>
For 8.3 and 8.4 use this script:
<script>
// The ASDF here comes from the Name property of the prompt
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() :
document.forms["formWarpRequest"]);
fW._textEditBoxASDF.maxLength = 3;
</script>
// The ASDF here comes from the Name property of the prompt
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() :
document.forms["formWarpRequest"]);
fW._textEditBoxASDF.maxLength = 3;
</script>
No comments:
Post a Comment