1 Reply Latest reply on Sep 3, 2012 12:06 AM by George_Johnson

    Repeating a value in another field


      I would like to make a field in a column equal to an amount previously entered in another field and am not familiar with Java Script.  I will be using this field in a column that I will total at the bottom.

      Using Acrobat Pro 9. Thanks in advance.


        • 1. Re: Repeating a value in another field
          George_Johnson MVP & Adobe Community Professional

          There are a number of ways to do this. The simplest is to simply give both fields the same name and the values will automatically be the same. This isn't always possible, for example if you want one field to be read-only and the other not. If that's the case, you can use the following custom Validate script for the first field:


          // Custom Validate script


          // Set the value of Text2 to this field value

          getField("Text2").value = event.value;



          Finally, you can use a custom calculate script for the second field that is:


          // Custom calculate script


          // Set this field value to the value of Text1

          event.value = getField("Text1").valueAsString;