Copy text in field to other fields in same PDF?

asked 2016-10-06 03:49:37 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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

edit retag flag offensive close merge delete