• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

auto fill field

New Here ,
Nov 14, 2018 Nov 14, 2018

Copy link to clipboard

Copied

How can I create a field that will automatically copy the contents of another field in InDesign? For example, I have two pages spread, if I typed the number number 1255 on the first page of the spread, I want the field on the second page of the spread to be filled automatically with the same number.

Views

3.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 14, 2018 Nov 14, 2018

A pontential problem with that:

You cannot run a story A inside another story B where all the text frames of story A are divided to several anchored text frames. At least not by using InDesign's user interface. By scripting this is possible, but it will be quite an effort and needs some planning ahead: You have to determine from the start the number of instances, the number of text frames, you want to anchor.

Here an example where three text frames containing one table and are threaded are anchore

...

Votes

Translate

Translate
People's Champ ,
Nov 14, 2018 Nov 14, 2018

Copy link to clipboard

Copied

In the Buttons and Forms panel in InDesign (or in the Name field in Acrobat), give both fields the same name.

Ariel

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 14, 2018 Nov 14, 2018

Copy link to clipboard

Copied

Ariel's answer above is correct if you're talking about form fields for export to PDF.

If you're asking for a way to link/automate text frames while editing in InDesign, see Use linked content features in InDesign

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 14, 2018 Nov 14, 2018

Copy link to clipboard

Copied

Thanks, I can also do the same with cross reference. My point is, there is no way—so far— for the number to update automatically without having to update the "link."

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Nov 15, 2018 Nov 15, 2018

Copy link to clipboard

Copied

Another approach could be to use Text variable (running header).

Learn how to number pages, chapters, and sections in InDesign

Please note that you may need to refresh the page in order to see the effective change

6500.gif

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 14, 2018 Nov 14, 2018

Copy link to clipboard

Copied

Hi,

hm…

Technically the only way you can have an immediate update to the same text with the same formatting is using a table. A one column table with a number of body cells and one header cell.

For one instance of your contents that means:

One header cell plus at least one body cell per text frame.

All the text frames have to be threaded to one story.

Example:

TableHead-OneColumnTable-1.PNG

You would go without inset spacing and without strokes for all the cells:

TableHead-OneColumnTable-2.PNG

Changing the header cell will immediately change all headers in all threaded text frames the table is running through.

Regards,
Uwe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 14, 2018 Nov 14, 2018

Copy link to clipboard

Copied

A pontential problem with that:

You cannot run a story A inside another story B where all the text frames of story A are divided to several anchored text frames. At least not by using InDesign's user interface. By scripting this is possible, but it will be quite an effort and needs some planning ahead: You have to determine from the start the number of instances, the number of text frames, you want to anchor.

Here an example where three text frames containing one table and are threaded are anchored to the main story.

If you change the number in the header cell of the table that is positioned in frame one, all other anchored frames instantly will show the same contents.

ThreadedTable-RunningInsideStory-1.PNG

The three anchors in story view:

ThreadedTable-RunningInsideStory-2.PNG

The table running through the anchored frames in story view:

ThreadedTable-RunningInsideStory-3.PNG

The link to the file on my Dropbox account:

Dropbox - ThreadedTable-RunningInsideStory.zip

The above construct can be done with several main stories as well.

Means: Theoretically the table can run through one or more stories in one go.

Best,

Uwe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 15, 2018 Nov 15, 2018

Copy link to clipboard

Copied

Thanks! that is pretty much what I had in mind.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 15, 2018 Nov 15, 2018

Copy link to clipboard

Copied

LATEST

https://forums.adobe.com/people/roula+i.y10886656  wrote

Thanks! that is pretty much what I had in mind.

I have to point out that one cannot do this by using InDesign's user interface.

There is one part of the workflow that has to be done by scripting. And that's the anchoring of the frames.

For that you have to know the insertion point where the anchor will be added and you have to decide the type of anchoring.

When the frames are anchored, even with scripting you will not be able to add text frames to the story with the running table.

Adding text frames will mean first to unanchor the text frame you want to thread the next frame to.

If you are in scripting ExtendScript (JavaScript) for InDesign see into property anchoredObjectSettings:

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#AnchoredObjectSetting.html

and especially to its method insertAnchoredObject() that is available since InDesign CS 5.5:

https://www.indesignjs.de/extendscriptAPI/indesign-latest/#AnchoredObjectSetting.html#d1e378281__d1e...

Regards,
Uwe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 15, 2018 Nov 15, 2018

Copy link to clipboard

Copied

What about using a text variable? So long as the type doesn't have to go over one line, the following would be my suggestion:

Create a new text variable by going to the type menu, text variables, then define...

Screen Shot 2018-11-16 at 00.24.54.png

From the text variable dialog box, select new.

Screen Shot 2018-11-16 at 00.26.40.png

Then enter the type as custom text and type the word you would like to be repeated. In this example, I've used the word "fish", but the NAME of the text variable is called eeee for reasons that will become apparent in a minute.

Screen Shot 2018-11-16 at 00.33.36.png

Once the text variable is created, it can be inserted the long way via the menu items...

Screen Shot 2018-11-16 at 00.35.00.png

OR the much faster way of using quick apply (Command+Return on a mac) and typing the letters eeee:

Screen Shot 2018-11-16 at 00.36.20.png

I've only chosen the letters eeee in this instance so that it is unique to the quick apply menu and won't choose anything else.

Let's now say I want to replace the word "fish" with "cats", I can now do this by redefining the variable from the text variable dialog box.

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines