Pdf form script to clear a text field and copying value with same button.
I want a single button in pdf form to perform the below task:
Copy the value of the first text field to second field and then reset the first field without changing the value of second field to which the original value was copied.
I used the following script but it resets the both fields;
first field = Text1;
Second field = Text2;
script:
this.getField("Text2").value = this.getField("Text1").value;
resetForm(["Text1"]);
thanks
