Skip to main content
Sturm359
Inspiring
May 22, 2017
Answered

item_id restrictions

  • May 22, 2017
  • 1 reply
  • 674 views

I'm revising some old code used by our company for dynamic stamps that pop up a dialog box for input before the stamp is placed. In the code, "item_id" is used to uniquely identify the various text fields. I noticed that each one is using a four-letter abbreviation, such as "etcn" for "Edit Text field - Customer Name". I have also noticed this in my searches online, in my Acrobat Scripting Guide PDF, as well as in my "All About PDF Stamps..." Kindle book.

Is this 4-character limit for the "item_id" property just a common convention used by programmers, or is it absolutely required and specified somewhere in an Acrobat scripting doc that I have somehow missed? Also, what other restrictions are there to "item_id"?

This topic has been closed for replies.
Correct answer try67

From the reference of the execDialog method:

item_id - String - An ItemID for this dialog box, which is a unique 4-character

string.

So yes, it has to be exactly 4 characters and unique. I don't believe there are any other limitations on it.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
May 22, 2017

From the reference of the execDialog method:

item_id - String - An ItemID for this dialog box, which is a unique 4-character

string.

So yes, it has to be exactly 4 characters and unique. I don't believe there are any other limitations on it.

Sturm359
Sturm359Author
Inspiring
May 22, 2017

Aha, so that's where it is found. Yep, I definitely missed that; sorry.

Thanks for the super-fast answer, @try67!