Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppress Display of Calculated Field when it Equals Zero

Status
Not open for further replies.

weigoldk

MIS
Jan 12, 2001
249
US
I originally posted this over in the Adobe forum, but I haven't gotten a bit yet. I believe the answer will come in scripting. So I'm adding it to this Forum also.

I'm an Adobe and scripting novice (so in other words, don't be afraid of being overly explicit ;))

I have a very simple calculated field in an Adobe form. It adds up two other fields in the form. When the other fields in the form are left blank, the calculated field displays zero (that makes perfect sense), but I'd like to suppress the calculated field if the other two fields are left blank. If it would be easier to look at it a different way, I could also suppress the calculated field anytime that it equals 0.



 
Without seeing what your code is, it sounds like you just need a simple if statement to not execute the cacluation if the result equals zero.

result = field1 + field2

if result > 0 then
calculate and display results
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top