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"?
From the reference of the execDialog method:
item_id - String - An ItemID for this dialog box, which is a unique 4-character
So yes, it has to be exactly 4 characters and unique. I don't believe there are any other limitations on it.
Aha, so that's where it is found. Yep, I definitely missed that; sorry.
Thanks for the super-fast answer, @try67!