Hello,
I have a form with a LoanRequired field which accepts numeric data only.
If user enters >14900 then I want the user to continue as normal with the
default form.
If user enters <1000 then I want a prompt to say "You must apply for at
least £1000"
If user enters between 1000 and 149000 I want to prompt "You must complete
another form" and then redirect to another URL.
Here is my code:
<script>
function calcLoanRequired()
{
if (document.form1.LoanRequired.value > 149000)
{
}
else if (document.form1.LoanRequired.value < 1000)
{
}
else
{
alert("GOING TO OTHER FORM")
document.location.href=("http://lowvalue.co.uk")
}
}
</script>
Now, I get 100 enquiries a day, and although 90 of them go to the right
place, it seems around 10 a day are ignoring the script and the user is able
to submit the form with a value of between 1000 and 149000. The function is
called onBLur (the LoanRequired form field), onClick (The submit button) and
onSubmit(The form tag).
Any ideas?
Thanks!!!
Gary.
PS - I CANNOT REPLICATE THE PROBLEM, I HAVE TRIED EVERYTHING!!!!!