I am trying to get a field to display a string depending on an if statement
I have 3 text boxes involved in this code. the first text box is called adults, the second is called children and the third is called result. Once the user enters numbers into the first 2 textboxes the 3rd should display a result, and the result will be different depending on the numbers entered in the adults and children text boxes. here is the code that I wrote for it but it isn't working.
var a = this.getField("adults").value;
var b = this.getField("children").value;
if ((a == 1) && (b >= 5))
(event.value == "FSR")
else if ((a <= 2) && (b >= 8))
(event.value == "FSR")
else
(event.value == "PAU")
I have this code written in the "custom calculation" area of the result text box properties.
