Skip to main content
ACrosby
Known Participant
Jun 6, 2012 9:03 PM UTC
Answered

Acrobat Form Fill Fields - Can you specify a font?

I am using the new feature of InDesign CS6 that allows creation of form fields for PDFs. After exporting the page to PDF via the interactive setup dialog [command+E 'Adobe PDF (interactive)] I'll inspect the finished PDF in Acrobat 9. Everything looks as it should, except that when I type in some sample text in a text field, it uses Times Roman as the font. I would like it to use Arial regular.

I can't find any way to specify a font for these form fields in InDesign CS6. This particular project involves quite a large number of files - so I'd rather avoid a process that requires me to go in to Acrobat and 'tweak' each PDF, changing the font in the properties dialog of each field to the Arial.

Is there a way to set the font of a form field directly in InDesign? I've looked around and can't find a menu or dialog that addresses this.

Thanks in advance for any help.

This topic is closed to new replies. Start a new post to keep the conversation going.
BobLevine
BobLevineCorrect answer
Community Expert
Jun 20, 2012 5:28 PM UTC

This is major step forward for form creation but it isn't perfect. Some things need to be finished in Acrobat.

Bob

47 replies

MADink_Designs27
Inspiring
Jun 14, 2021 1:58 PM UTC

I know this is an old post and that InDesign now allows you to enter the font for form fields, but there are still use cases in forms created in InDesign that this may be useful for such as forgetting to set it, modifying an older form, or deciding to change the font. This method could change hundreds of fields with a simple script and save you immeasurable time in InDesign by having to manually set each field.

 

This is the AcroForm solution in Acrobat:

First, you need to find out the PDSysFont Name.

 

  1. Create a text field in a PDF document and change the font of the field to  your desired font in the field properties

  2. Open the JS Console (CTRL + J) and execute the script (Select All and hit CTRL + Enter)

    this.getField("Text1").textFont
    Replace "Text1" with your field name

  3. The string returned to the console is the PDSysFont that you'll need below.

 

After you get the font name,  you can then run this script in the console (Remember to select all and CTRL + Enter to run the script). This script assumes you want the font to be Myriad Pro Regular, and it will apply to all text fields in the document. Change MyraidPro-Regular to the PDSysFont you got in the steps above. PDF forms also have other form field types such as combobox. Lookup the Acrobat SDK for more info:

 

for (var i = 0; i < this.numFields; i++) {
	var fname = this.getNthFieldName(i);
	var f = this.getField(fname);
	if(f.type === "text") {
		f.textFont = "MyriadPro-Regular";
	}
}

 

 

Translate
Participant
Mar 7, 2018 4:31 PM UTC

Yes you can.

First click on Form Tools, then click Form Edit, then just right click on a form field, select Properties, second Tab - Appearances.

Here you can designate the font and its size.

I hope that that helps, even though it may be kind of late now in 2018, but if anyone wants to know that is how I do it.
Also note, I use InDesign CS6 to create my PDFs.

Translate
Derek Cross
Community Expert
Community Expert
Mar 7, 2018 4:47 PM UTC

Use system fonts.

Translate
Apr 19, 2016 6:40 PM UTC

Hi Bobby,

It is possible to change fonts in Acrobat Pro. You can fix multiple fields at a time (I've done as many as 20 at a time) by doing a marquee select around them (make sure Text Field Properties dialog box is open to the Appearance tab before selecting the fields) and changing ONLY the font property.

Translate
Participant
Aug 5, 2015 10:31 PM UTC

In Acrobat Pro DC (2015 release)

Choose "tools"

Choose "prepare form"

Now select the editable fields you want to change the font in (from the Times default)

On the right, choose "more" (there is a tool icon next to it)

Choose "Show field properties"

Choose "Appearance"

Under "Text" set your font and font size

I hope that helps, it took me ages to find.

Translate
Inspiring
Oct 14, 2015 8:29 PM UTC

Yes, but this is PITA as you have to to di EVERY TIME. Should be a way to do that in INDD or a way to change the defaults in Acrobat.

Translate
Colin Flashman
Community Expert
Community Expert
Oct 15, 2015 9:32 AM UTC

We agree, there should. Sadly, there isn't.

There is a way to make this easier, and that is to make an Action in Adobe Acrobat DC that will run a javascript over the PDF to find each form field and change the formatting to what is desired. Here is what the action should look like:

Translate
If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!
Participant
Jul 9, 2015 9:27 PM UTC

I hope this helps anyone working with Adobe CC.

> Create your text field in InDesign

> Export as an Interactive PDF

> When in Acrobat, click "Prepare Form"

> Right click on your text field

> Click Properties...

> Adjust font, alignment, color, size etc. here.

Translate
TᴀW
Legend
Jul 9, 2015 9:54 PM UTC

As this thread has been resurrected :-), I'll take a ride and mention:

http://www.id-extras.com/products/formmagic

... which is by far the easiest way to prepare forms fields in InDesign and assign a font to them that will carry through to Acrobat. The free edition lets you create short forms with all formatting intact.

Translate
id-extras.com | InDesign tools & scripts for typesetters, form designers, and translators
cBracewell
Participant
Jul 25, 2014 3:28 PM UTC

I've been searching for a solution and found a fellow who writes custom scripts for Acrobat.

He created a script with a front end that lets you select fields to edit (by name, by type, by page) and allows you to mass edit field properties. Based on the number of forum posts here and elsewhere about this problem, this could be a very valuable tool.

Custom-made Adobe Scripts: Acrobat -- Mass Edit Fields Properties

This text editor keeps changing the URL into a clickable link page title, but in case that doesn't work, here it is without the auto-link feature that keeps overriding my paste.

try67.blogspot.com/2013/06/acrobat-mass-edit-fields-properties.html

Carol

Translate
Participant
Feb 10, 2014 4:53 PM UTC

You can edit the typeface used in your text fields in Adobe Acrobat Pro. Create your form with all the appropriate text fields you would like in InDesign CS6 then:

  • export your form from InDesign CS6 as an interactive PDF
  • open your file in Adobe Acrobat Pro
  • Click "TOOLS" on the right hand side (next to sign and comment)
  • Click "INTERACTIVE OBJECTS"
  • Click "SELECT OBJECT"
  • Then select all or any text fields you would like to change
    • if selected the text field should appear blue, not red, as well as displaying the description (if you assigned one while creating your form in InDesign)
  • Once selected RIGHT CICK (if using a MAC or mouse without a right click button press crtl + click your mouse)
  • a pop-up should appear and the at the top of the list you will see PROPERTIES
  • click properties and go to APPEARANCE
  • under the TEXT section you will see options to alter your text fields designated typeface, color and size

NOTE: I believe if the user filling out the form does not have the typeface you assigned to the text field(s) it will default to New Times Roman

Translate
martinbats
Participant
Oct 22, 2014 7:54 PM UTC

I got the intention, only thing is: There is no "interactive objects" button.

Do I need an update to require this? To check the date you wrote this, probably not, lol.

Please help me.

Translate
Community Expert
Oct 22, 2014 9:50 PM UTC

In Acrobat, select "Content" (from your screen capture, 2nd tool down) At the bottom of that tool, there will be "Select Object". Use this tool to Control Click on field >  Properties > Appearance

Translate
Zinusmero
Participant
May 6, 2013 6:09 AM UTC

You can kind of get around this by instead of using a form field, add a comment after the PDF has been created. You can specify the font of a comment and any user will be able to click on the comment and edit it. However, they will still require the specified font on their PC.

For example, I have used it where the user needs to specify an email address. The comment i entered simply says "Enter your email", the user edits the comment and their email is shown in the font selected.

The user will still be able to change the font, size etc so it isnt the most secure solution, but its more than is being offered at this time with indesign.

Translate
Participant
Feb 21, 2013 2:37 PM UTC

I know this is an old post, but I've been having the same problem and have worked out how to fix it in Acrobat. Go to Tools > Select object and click on the text field you want to alter. Right click and go to Properties > Appearance. You can change font attributes etc. from there.

Translate
MoD_Andy
Participating Frequently
Feb 21, 2013 2:47 PM UTC

Hi Nicole,

Yep think that only does it at user level though, it won't embed the selected font in the saved PDF so if you send it to another user to fill in, they'll still see the rubbish fonts.

Shame cause it makes forms look damn ugly when filled in....and I don't like ugly forms.

Translate
Legend
Feb 21, 2013 2:59 PM UTC

I have been looking at the SDK and it seems that the font being used for the form field is the default font found by the font manager. I have no idea how the font manager decides what the default font is. If you can work that one out you can probably change it to your choice.

Translate
MoD_Andy
Participating Frequently
Dec 4, 2012 12:31 PM UTC

Bah I was just wondering the same. Damn shame Adobe stopped short of Font selection for form fields, even just web fonts would be good, Times is just so ugly.

Translate