I'd like a textbox with calculations to only show up if TWO check boxes are checked. Can anyone help?

First checkbox is titled SECOND SHOOTER
Second checkbox is titled TRAVEL & LODGING

The textbox in question is the travel expenses for the second shooter , titled SECOND SHOOTER TRAVEL COSTS which ONLY need to be visible or added if BOTH boxes are checked.

I'm using DC PRO so most of this has been extremely simple.. I'm stuck on the script for this though..

any help would be GREATLY appreciated!!


Heather Miller


2 Answers

Voted Best Answer

Enter the following custom calculation script in the "SECOND SHOOTER TRAVEL COSTS" text box. If you already have a calculation in it you enter this script before or after. It doesn't matter whether your calculation runs or not because the field will only be visible if the conditions are met:

if(this.getField("SECOND SHOOTER").value!="Off" && this.getField("TRAVEL & LODGING").value!="Off")
{
event.target.display=display.visible;
}
else
{
event.target.display=display.hidden;
}
________________________________________________________________________________________________________________ www.PDFAutomationStation.com

IMAGE ALT TEXT IMAGE ALT TEXT IMAGE ALT TEXT

_________________________________________________________________________________________________________________


By David Dagley   

Since I have it currently set to be the total of TRAVEL, MEALS, and LODGING already by selecting Value is the SUM of...how would I go about this?


Heather Miller   


Please specify a reason: