I am trying to create a pdf form which can calculate the checked boxes predefined values in to a TOTAL field. I tryed to upload the pdf file sample but forum not allowing it. Please refer the screenshot.
Kind regards
Solved! Go to Solution.
Hi,
Assuming the airconditioning checkbox is called AirConditioning and the number of hours called AirConditioningHours and the project system checkbox is called ProjectionSystem.
Try this JavaScript code in the calculation event of the total field;
var total = 0;
if (AirConditioning.rawValue == 1)
{
total += AirConditioningHours.rawValue * 4;
}
if (ProjectionSystem.rawValue == 1)
{
total += 15;
}
this.rawValue = total;
Regards
Bruce
Hi,
Assuming the airconditioning checkbox is called AirConditioning and the number of hours called AirConditioningHours and the project system checkbox is called ProjectionSystem.
Try this JavaScript code in the calculation event of the total field;
var total = 0;
if (AirConditioning.rawValue == 1)
{
total += AirConditioningHours.rawValue * 4;
}
if (ProjectionSystem.rawValue == 1)
{
total += 15;
}
this.rawValue = total;
Regards
Bruce
Thanks very much Bruce
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies