The Holy Grail Has Been Found – Create Forms Fields in InDesign
James Fritz June 14, 2011
Another new feature is the ability to set multi-line text fields by adding the extension -txm.
In addtion, if there is more than 1 field with the same name, just first field is created,
and others are deleted automatically, but there is alert if that happens. It also corrected a few small issues with radio button groups.
TomaxxiFORMS is now updated to 1.3. This new update fixes the tab order problem. The script will now change the tab order to by row in Acrobat. The other news is that you can now create radio button groups. Name each button with a unique name to start, followed by _rad and then another _group name. Ex – mac_rad_computer or win_rad_computer
I have also updated the IDML and PDF assets to include radio buttons for your own testing.
There is a now another update to the script available here and the other links in the article. This update adds an icon and a version number, 1.2.
I woke up with morning with an email from Marijan who has updated the script. Apparently, tool tips are transferred. The next part is the best, we can now setup other form fields with the following codes.
_txt – text field
_chk – check button
_rad – radio button
_sig – signature
_lbox – list box
_cbox – combo box
Last month at the InDesignSecretsLive Print & ePublishing Conference Tony Harmer presented an amazing feature request to Adobe via a poem during his ignite presentation. Like a lot of users, he had been waiting for native form field creation inside InDesign, but at the conference Adobe didn’t really seem to provide much of an answer other than ” file a feature request”.
After feeling hopeless about this feature, I kind of forgot about it until a few days ago when I came up with an idea. Since it is possible to create buttons inside InDesign and have them transfer without any issues, why not run a script inside Acrobat that looks for buttons and convert them into text form fields? I sent a message to Marijan Tompa, an author of many amazing scripts, and asked him if it was possible for Acrobat to do this via scripting. After explaining my idea to him, he sent me a prototype script in 15 min!
Over the new two days we worked out some bugs, but now we are ready to share it with you. At the end of the article I have links to download the script and a sample form via a IDML and PDF.
How the Script Works
Begin by designing your form as normal inside InDesign. When you are ready to create the form fields, I recommend that you create a layer for the form buttons.
Next, draw empty frames (no formatting) wherever you would like text fields to be in your layout. After creating all of your text fields, convert each of them into a button. It is not necessary to give them any attributes like actions or appearances.
Name each button with the text field name that you would like (Phone). However, you need to add an underscore followed by txt after the name. (Phone_txt). This _txt is what the script will look for when it converts it into a text field. The script will ignore the buttons that do not have _txt in their filename.
Exporting to PDF
After finishing the layout, export your form to an interactive PDF. In the export options, be sure to create a tagged PDF. The most important thing to remember is to “Include All” under Buttons and Media, otherwise the buttons would not be included.
Installing the script
In order to run the script, you will need Acrobat Pro. I have tested the script on Acrobat Pro 9 and X. After downloading the script and unzipping, just copy the script to the following folder depending on your OS and Acrobat Version. You might need to restart Acrobat in order to run the script.
Acrobat 9 – Mac
Acrobat X – Mac
Acrobat 9 – PC
Acrobat X – PC
Running the Script
Now that you have the script installed, open your PDF in Acrobat Pro. When you run the script, it will only take a second or two and all of your buttons with _txt will now become text form fields. Be advised that the script will add another underscore to the name of the field
Example: Phone_txt will become Phone_txt_
In Acrobat 9, go to the tools menu and you will see tomaxxiFORMS. Select this option to run the script.
In Acrobat X, click on tools and at the bottom, open up Add-on Tools and you will see the tomaxxiFORMS script. Click on the script to run it.
TomaxxiFORMS Script version 1.3 (unzip after downloading)
IDML Form (for testing)
PDF Forms (start and end)
Latest posts by James Fritz (see all)
- Tip of the Week: Locking Items - December 16, 2014
- Where is My Drop Shadow? - October 11, 2011
- Create an Interactive PDF with Animations in 1 Step - September 28, 2011
Sign up for the InDesign
Tip of the Week
- News and Updates:
- Interview with Mohammed Javed Ali, InDesign product manager
- Our top 10 OIFOTW's (Obscure InDesign Features) from episodes 3 to 237
- And this episode's Obscure InDesign Feature of the Week: Alpha Channel
- Dawn Hoef said about Free Lynda.com Video: InDesign CC 2017 Essential Training:Hello, We need help working with Adobe Premiere…
- Sheila Bourgoin said about How to Keep InDesign CC 2015 When You Install CC 2017:InDesign CC2017 is the second Adobe application in…
- Chris Lunn said about Easier import of complex Excel spreadsheets:Help! I've followed the instructions exactly but the…