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

Script to auto-fill meta data

New Here ,
Jun 26, 2018 Jun 26, 2018

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
779
Translate
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
1 ACCEPTED SOLUTION
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;

View solution in original post

Translate
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

You can use something like this:

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

Translate
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

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

Translate
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

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

Translate
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
LATEST

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

Translate
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