Hi,
Need your help guys. Do any of you have a sample javascript that validates the value in a prompt and after clicking the finish button, it will display an error message "value should not be blanks" if the prompt has no value?
regards,
tven
<script language="javascript">
if(document.getElementById('formWarpRequestRS')._oLstChoicesXXX.options[0]==" ")
{
alert("value should not be blanks")
}
</script>
Or
<script language="javascript">
if(document.getElementById('formWarpRequestRS')._oLstChoicesXXX.value ==" ")
{
alert("value should not be blanks")
}
</script>
where XXX is the name of the prompt.
Hi,
Thanks for the reply,but where should i put the html item containing this code? Should it be beside the prompt being validated or the finish prompt button?
Thanks in advance.
Regards,
tven
yeah , u can do eithr...the html item wil check in the layout whaich objects has been embided with this,
better place the HTML item after the prompt button