I recently incorporated a checkbox into a PDF form to automatically duplicate address information when checked using the following script on MouseUp event:
getField("addr1").value = getField("addr2").valueAsString;
But now I am looking for a way to reset the same field when the checkbox is unchecked. Would I need to use a function like this:
clearForm(myFormElement.element.elements?
How can I incorporate this function into my existing script?