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

Change default form field font

Participant ,
Feb 22, 2017 Feb 22, 2017

I know there must be an easy solution to this and I am sure I am not the only one to ask.

When I export an interactive PDF from InDesign, the text fields inherit Times New Roman as the default field font.

It doesn't matter what paragraph style is default in InDesign.

Is there a way to change the default font in Adobe Acrobat Pro XI globally so that it defaults to whatever I choose?

Thanks in advance.

Alan

TOPICS
PDF forms
24.1K
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
1 ACCEPTED SOLUTION
Participant ,
Feb 23, 2017 Feb 23, 2017

Again that is not even a vaguely useful answer and it says by your profile that you are an expert.

My question relates to the default font in Adobe Acrobat for form fields. I don't want to 'click' on anything.

I have found a solution elsewhere posted by someone that is not an expert - just someone that needed an answer and put in the time to find one.

It is beautiful and it is a javascript that is run as an action.

To do this in Adobe Acrobat XI, open Tools and then Action Wizard. Click on 'Create New Action' - Select 'More Tools' and choose ' Execute JavaScript.' Click the arrow icon in the centre 'Add to right hand pane.' There should now be a new untitled action. Double click on 'Specify Settings and paste in the script below.

for (var i = 0; i < numFields; i++) {

    var fName = getNthFieldName(i);

    var f = getField(fName);

    if (f.type === "text") {

//      f.alignment ="center";

        f.textSize = 6;

        f.textFont = "Helvetica";

        // Other properties go here

    }

}

The only part that didn't work was the 'center' Font type and size does which is really a great leap forward for my purposes.

Just tweak it to your liking. I found that when you specify the font, there must be no space so for example Open Sans would be OpenSans

I hope this helps someone in the near future.

View solution in original post

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
Community Expert ,
Feb 23, 2017 Feb 23, 2017

This script doesn't change the default form field font for new fields.

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
Participant ,
Feb 23, 2017 Feb 23, 2017

Who cares - I have a form with 200 text fields. I want to specify a particular font that isn't Times New Roman. I don't want to have to select every field and change it. This script solves my problem. Thanks for not helping - another expert with no better solution...

The question has been solved satisfactorily so unless there is someone willing to help with better solutions please don't reply.

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
Community Beginner ,
Jan 24, 2018 Jan 24, 2018

The reason why "Centering" doesn't work is because the command line is deactivated with "//". Just remove those two backslashes and it would work. Great script though, saved me hours of going page by page in a massive banking form I'm building.

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
New Here ,
Jun 07, 2018 Jun 07, 2018

@michaels57386376    I tried your suggestion about the "center"  and //  
but it didn't work for me so then I just changed the word center to "left" and wholaaa  - it worked perfectly.

I'm still trying to figure out how to add padding to the left side - so the text entered in the Form Field wont be butt-up-against the box.

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
Community Beginner ,
Sep 04, 2018 Sep 04, 2018

Thank you so much! I was having the same exact problem, now I'm not! The. best.

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
New Here ,
Nov 21, 2021 Nov 21, 2021

Does not work. This is ridiculous. A simple no-code function like creayimg a standard font and size for editable fields should not require some dodgy JavaScript which then does not work. Primitive crapware at scale. Adobe is horrendous.

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
New Here ,
May 09, 2023 May 09, 2023
LATEST

Thank you so very much!  I have searched for this answer for a very long time!  🙂

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
Explorer ,
Jun 13, 2018 Jun 13, 2018

Thanks so much! This helped me TREMENDOUSLY! Shame that Adobe doesn't help us with the simple things...

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
New Here ,
Oct 15, 2018 Oct 15, 2018

This works great, thank you!!!

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