I am trying to create a form with a series of formulas in the classic designer. The formulas will act on the values in two fields. For this process there will be a field and a corresponding checkbox that will compare to another field and corresponding checkbox. The field will contain a number value and if the item is included, then the checkbox will be selected. When the checkbox is selected the number field needs to be cleared. This needs to occur whether the number is entered first and then the box is checked or if the box is checked first and then a number is entered.
The particular issue that I am running to at the moment is that the checkbox value is returning as undefined.
Here is the current Java that has been added to the form. Currently I am using a test copy that only has this Java present to ensure that there are not any conflicts with existing code on the original form.