I have created the below script. I can not get only either the first part of the second part to work. I can not get them both to work.
//TRAIL obtain the value for the field objects:
var MemberBlanketfee= this.getField( ' MemberBlanketfee ').value;
var TrailTotal= this.getField(' TrailTotal ').value;
var TrailClass = this.getField(' TrailClass ').value;
var MemberDailyFee = this.getField(' MemberDailyFee ').value;
// test the value of the check box
if (MemberBlanketfee == '85')
event.value = 0;
else
event.value = TrailClass * 12;
if (MemberDailyFee == '30')
event.value = 0;
else
event.value = TrailClass * 12;
Have you tired adding console statements to show what is going on?
What is not working?
Clearly explain what you are trying to acccomplish. You may have a error in the logic of your testing.
George Kaiser