David-

 

This code didn't work but it didn't return an error so I think the problem may still lie in the pathway of the code."less10" field is autocalc which multiplies two other fields to get its total:

 

Var a = this.getField("retrate");

Var b = this.getField("comptot");

Event.value = a.value * b.value;

 

Is there a way to still zero out this field even though its end product is a result of the above calculation.Thank you for your help!

 

Justice

 

-----Original Message-----
From: Boardwine, David L. [mailto:[EMAIL PROTECTED]]
Sent
:
Friday, June 20, 2003 12:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [PDF-Forms] PDF Code to release field

 

var f = this.getField("less10");
f.value = "";

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
Friday, June 20, 2003 2:41 PM
To: [EMAIL PROTECTED]
Subject: [PDF-Forms] PDF Code to release field

Hello,

 

Does anyone have or know of a code in _javascript_ that will cause another field in the form to return a value of zero?I work for a contractor and am trying to create a button that will zero out the retention field when pressed.The only way I could think to do this was by using _javascript_ to execute that function.Sorry for the long explanation.I am somewhat new at this.THANKS!

 

FYI- The field is named "less10" that I need to change when the button is pressed.

 

Best Regards,

Justice Gradowitz

HPS Mechanical, Inc.

Billing Coordinator

 

<<attachment: image001.gif>>

<<attachment: image002.gif>>

Reply via email to