Copy text in field to other fields in same PDF?

I would like user to input into Text 1 and have that automagically copied to a Text 2 field on a PDF form (via Writer)

Tried using

      var one = this.getField("Text1");
      var two = this.getField("Text2");
      if(two.value==''||two.value==null){two.value=one.value}

In a JavaScript macro but nothing. I tried a litany of other things too, all JavaScript stuff.

any ideas? thanks