Avatar

Correct answer by
Level 10

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

View solution in original post