/ Id-Extras Forum / Duplicating text from one field to another.

  • Author
  • #6202 Reply

    I want to duplicate text from one field to another. I know that the simple way is to give both fields the same name, but I want to make one of the fields turn off and on as it is on a popup window with 5 popups layered over each other. I cannot do this if both fields have the same name as they will both be visible or both hidden.

    I am turning the fields on each layered popup off when not selected so that the completed fields do not show through the other layers. But I want the first field to stay visable when the second is hidden.

    • This topic was modified 7 months, 2 weeks ago by Ariel.
    #6444 Reply

    Hi Warren,

    I’m also not managing to use the “same field name” trick (which is not to say it is not possible – you may want to ask on the Adobe Acrobat forum, an expert there may have a solution).
    So what I would do in this case is a one-line custom “format” script that copies the contents of Field A to Field B whenever Field A is modified. It looks like this:

    this.getField(“Field B”).value = this.getField(“Field A”).value;

    This script would be attached to Field A. In FormMaker in InDesign open the “Format” tab and choose “Custom” from the dropdown, and paste this in. Obviously you would need to change the field names to match the particulars of your form.


    #6445 Reply

    Thanks Ariel.

    This you think would be a standard step in In Design, I guessed it would be one line of code, and I was trying to figure it out with my limited coding skills.

    Many thanks.



Viewing 3 posts - 1 through 3 (of 3 total)


Reply To: Reply #6445 in Duplicating text from one field to another.
Your information: