hi! I'm new with scripts and tried to google to find the answer, but am at a loss.
I have 3 checkboxes (named: Check Box1, Check Box2, and Check Box3) that populate a corresponding textfield with a specific numeric value associated with that textfield.
My problem is I have a 4th textfield that I want I would like to sum the textfields that are populated based off the checkboxes. The issue I am having is that the Total function, doesn't recognize when one of the textfields is not populates, it adds that value in the total even if the checkbox is not checked.
Code I used for the checkboxes:
var nHide = event.target.isBoxChecked(0)?display.visible:display.hidden;
this.getField("Apple").display = nHide;
![stockman_0-1611956084945.png stockman_0-1611956084945.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/29487iE31F6F23F32B1E06/image-size/medium/is-moderation-mode/true?v=v2&px=400)