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

Script: Extract text field names of all interactive forms

Contributor ,
Mar 06, 2025 Mar 06, 2025

I have a document with lots of interactive form fields to translate and I'm trying to figure out a way to extract all the text field names at once. Does anyone know a script to achieve this? Any help will be greatly appreciated.

Rogerio5C09_0-1741265553466.png

 

TOPICS
Scripting
205
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

correct answers 1 Correct answer

People's Champ , Mar 06, 2025 Mar 06, 2025

This script should do the trick. (No AI involved :-), so it actually works!)

pp = document.pages.everyItem().getElements();
s = [];
for (i = 0; i < pp.length; i++){
	f = pp[i].tabOrder;
	for (j = 0; j < f.length; j++){
		s.push(f[j].name);
	}
}
prompt("All fields, ready to copy...", s.join("\r"));
Translate
LEGEND ,
Mar 06, 2025 Mar 06, 2025

How will you be translating your file? 

 

If by some professional company / person - you can give them IDML file.

 

If it's a DIY project and If you work on Windows - I could give you access to the full version of my ID-Tasker tool for a few days for free. 

You could use it to export and then import back all of the names - and other elements in your document.

 

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
People's Champ ,
Mar 06, 2025 Mar 06, 2025
LATEST

This script should do the trick. (No AI involved :-), so it actually works!)

pp = document.pages.everyItem().getElements();
s = [];
for (i = 0; i < pp.length; i++){
	f = pp[i].tabOrder;
	for (j = 0; j < f.length; j++){
		s.push(f[j].name);
	}
}
prompt("All fields, ready to copy...", s.join("\r"));
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