Please can someone shed any light on where i'm going wrong.
I have a pdf form that uses a drop down menu for the SubBrand and a series of checkboxes for the Location.
the following code is placed as a custom calculation script in an address text field and what im after is dynamically setting the address based on the subbrand and location.
However whats happening is the address only changes based on the location and not the subbrand.
Does anyone please have any advice on this.
Thanks
if | ((this.getField("SubBrand").value == "Passion" || "Passion for Men") && (this.getField("Location").value == "WW")) { |
event.value = "Not Applicable"; |
}
else if ((this.getField("SubBrand").value == "Passion" || "Passion for Men") && (this.getField("Location").value == "US")) {
event.value = "US02"; |
}
else if ((this.getField("SubBrand").value == "Passion" || "Passion for Men") && (this.getField("Location").value == "WH")) {
event.value = "WH02"; |
}
else if ((this.getField("SubBrand").value == "Adventure" || "Liquid" || "Silver") && (this.getField("Location").value == "WW")) {
event.value = "WW01"; |
}
else if ((this.getField("SubBrand").value == "Adventure" || "Liquid" || "Silver") && (this.getField("Location").value == "US")) {
event.value = "US01"; |
}
else if ((this.getField("SubBrand").value == "Adventure" || "Liquid" || "Silver") && (this.getField("Location").value == "WH")) {
event.value = "WH01"; |
}
else | event.value = ""; |