Text box script
I am very new to coding and only know a few basics. I have a text box that adds or subracts 1 based off of another text box, which I got working well. But I also need it so other people can leave the text box blank without having to alter the number from the that it is add/subtracting from. Please see below.
var gravesite = this.getField("Gravesite").value;
var section = this.getField("IntermentSection").valueAsString;
if (section == "3A" || section == "3E" || section == "3J" || section == "3T" || section == "3Y" || section == "3Y" || section == "5B" || section == "5C" || section == "5D" || section == "5E" || section == "5G" || section == "5H" || section == "5I" || section == "25" && gravesite > "0") {
event.value = gravesite - 1;
}
else if(gravesite > "0") {
event.value = gravesite + 1;
}
else {
event.value = " ";
}
