I know this is OT but I am in a little bit of a jam.
I am tring to create a dependency to a field that contains a number and it does not do anything.
Here is the qform code:
objForm.Nam_CCtype.createDependencyTo("Nam_total", "60");
objForm.Nam_CCNumber.createDependencyTo("Nam_total", "60");
objForm.Nam_CCNameOnCard.createDependencyTo("Nam_total", "60");
objForm.Nam_CCDaytimePhone.createDependencyTo("Nam_total", "60");
objForm.Nam_CCExpirationDate.createDependencyTo("Nam_total", "60");
objForm.Nam_total.enforceDependency();
Here is the Nam_total HTML
<input type="TEXT" name="Nam_total" value=0 >
The _javascript_ for TotcalcTot(); is
function TotcalcTot() {
document.forms['signup'].Nam_total.value = parseInt(document.forms['signup'].grandTot.value);
if (document.forms['signup'].Nam_total.value < 0) {
document.forms['signup'].Nam_total.value = 0;
}
}
Thank you for your help
Jim Louis
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]