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

Script to auto-fill meta data

New Here ,
Jun 26, 2018 Jun 26, 2018

Copy link to clipboard

Copied

Hello,

I'm trying to find a script or something to bring inputted data from a text box into the title section of meta data.

Example: Currently my title meta data needs to read " 'Name', 'City', and 'State' " with all those entries being what the user inputted in the 'Name' 'City' and 'State' text boxes. Is a script that will take the 'Name' and input it in title meta data, followed by 'City' and the followed by 'State'?

Thanks!

TOPICS
General troubleshooting

Views

403

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 , Jun 26, 2018 Jun 26, 2018

You can use something like this:

this.info.Title = this.getField("Name").valueAsString + ", " + this.getField("City").valueAsString + ", " + this.getField("State").valueAsString;

Votes

Translate

Translate
Community Expert ,
Jun 26, 2018 Jun 26, 2018

Copy link to clipboard

Copied

You can use something like this:

this.info.Title = this.getField("Name").valueAsString + ", " + this.getField("City").valueAsString + ", " + this.getField("State").valueAsString;

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 ,
Jun 26, 2018 Jun 26, 2018

Copy link to clipboard

Copied

Where would I place this script? I've never input scripts into acrobat before.

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 ,
Jun 26, 2018 Jun 26, 2018

Copy link to clipboard

Copied

That depends on what you want to trigger it...

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 ,
Jun 26, 2018 Jun 26, 2018

Copy link to clipboard

Copied

LATEST

Thanks! I found a way to make the script work, it works perfectly.

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