PDF form adding 2 values to the same field
I have a form with a tick box that adds a value to a single field when ticked, and zeroes it when unticked.
The custom calculation script in this single field is:
event.value = this.getField("Tick domestic electrical").value == "Off" ? 0 : 516;
This works OK.
However I want a second tick box that adds the same value to that single field as well.
But I want it to add that same value, only if the other box is unticked and vice versa.
How can I get this to work?