I am trying to set a value of a text field based on the item selected in two combo boxes.
If the value of DayInvityQty = 188 and the value of DayInviteInk = 70 then the value of the textbox = 4 and so on as seen in the code below.
The code comes up with a syntax error on the line
Any help to solve the code.
Many thanks
If the value of DayInvityQty = 188 and the value of DayInviteInk = 70 then the value of the textbox = 4 and so on as seen in the code below.
The code comes up with a syntax error on the line
Code:
event.value = 6
Any help to solve the code.
Many thanks
Code:
if (this.getField("DayInviteQty").value == '188') And (this.getField("DayInviteInk").value == '70'); {
event.value = 4
} else if (this.getField("DayInviteQty").value == '204') And (this.getField("DayInviteInk").value == '70') {
event.value = 6
} else {
event.value = 0
}