Thanks for all the wonderful tips and tricks here...I've learned a lot. I am trying to create a check box that will automatically transfer the "Ship to" to the "Bill to" if the are the same. I can't seem to figure it out.
First, you are using the 'value' property and you should be using the 'rawValue' property. Second, if a user has entered data into the Ship To form fields you don't need to create new variables to store them.
Here is the click event on my checkbox object called 'copy', where the checkbox has an On Value of 1 and an Off Value of 0.
When in the script editor you can hover over the field you want to reference. Pressing control will turn the cursor into a down arrow, then holding control and clicking the field will insert the object's reference directly in your script:
If you hold control and shift, you will get a fully qualified reference: