Previous | Next | (P-PDF) Beginners
Topic: Performing Calculations upon User Input
Conf: (P-PDF) Beginners, Msg: 23498
From: marcie
Date: 7/6/2001 02:35 PM
On my form I have two fields--Hours and Percent. I want the percent to auto populate based on the hours the user inputs. The percent = hours/40. I entered this code in my hours field as a JS action On Blur event:
var theField = this.getField("hours");
var theValue = this.getField("percent");
var x = theField.value/40;
p.value=x;
I get this error statement.
TypeError: theField has no properties
Does anyone know what I did wrong and how to fix it?