/ Id-Extras Forum / Duplicating text from one field to another.
August 9, 2021 at 5:43 am #6202
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.
August 12, 2021 at 9:14 pm #6444ArielKeymaster
- This topic was modified 5 months, 3 weeks ago by Ariel.
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:Code: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.
ArielAugust 13, 2021 at 1:29 am #6445
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.