Previous | Next | (P-PDF) Beginners
Topic: Performing Calculations upon User Input
Conf: (P-PDF) Beginners, Msg: 23568
From: marcie
Date: 7/9/2001 01:38 PM
thanks to lpetroni for excellent advice
On 7/6/2001 2:35:00 PM, marcie wrote:
>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?