Highlighted

Custom line spacing in a fillable text form field

Explorer ,
Mar 15, 2017

Copy link to clipboard

Copied

My client has a word document with lines for applicants to print out and fill in, or "fill in digitally." Is there a way to create a text form field with "custom" line spacing? I know you can do it when you preview the document, but is there a way to actually "embed" that data in the text field so the user doesn't have to do it when filling out the form.

I figured it out, this can not be done in indesign which is something they need to work on because it defeats the idea of making a nice designed interactive pdf form.

In Acrobat

  1. Choose Prepare Form > Select the text field and right click > Select Properties
  2. Select "Options" tab and make sure Multi-Line and Allow Rich Text Formatting is selected > Close this window
  3. Exit out of Prepare Form mode
  4. Add some text in the text field > Highlight it and press CTRL + e > this will open up text field properties > select more... now you can edit your paragraph spacing.

NOTE: The only thing I noticed is that the text field might not hold onto those properties if the text is deleted, it seems to have reverted back to the default spacing.

2nd option, make multiple text boxes and link them together, again this can not be done in indesign and only done in Acrobat

  1. Make multiple text boxes and name them properly. Example Text_1, Text_2, Text_#, etc
  2. Right click on the first text box and open properties menu
  3. In the "Options Tab" ensure "Scroll long text" is turned off
  4. Next open up the format tab > Select Format Category : Custom > and open up the Custome Keystroke Script: by selecting "edit"
  5. Enter this java script

if (event.willCommit || event.fieldFull) {

    this.getField("Text_2").setFocus();

}

Do this for all text boxes and make sure to write the name of next text field into the java script. This will tell the text fields that when one is full, to carry onto the next text field assigned.

TOPICS
Macintosh, PDF forms

Views

22.9K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Custom line spacing in a fillable text form field

Explorer ,
Mar 15, 2017

Copy link to clipboard

Copied

My client has a word document with lines for applicants to print out and fill in, or "fill in digitally." Is there a way to create a text form field with "custom" line spacing? I know you can do it when you preview the document, but is there a way to actually "embed" that data in the text field so the user doesn't have to do it when filling out the form.

I figured it out, this can not be done in indesign which is something they need to work on because it defeats the idea of making a nice designed interactive pdf form.

In Acrobat

  1. Choose Prepare Form > Select the text field and right click > Select Properties
  2. Select "Options" tab and make sure Multi-Line and Allow Rich Text Formatting is selected > Close this window
  3. Exit out of Prepare Form mode
  4. Add some text in the text field > Highlight it and press CTRL + e > this will open up text field properties > select more... now you can edit your paragraph spacing.

NOTE: The only thing I noticed is that the text field might not hold onto those properties if the text is deleted, it seems to have reverted back to the default spacing.

2nd option, make multiple text boxes and link them together, again this can not be done in indesign and only done in Acrobat

  1. Make multiple text boxes and name them properly. Example Text_1, Text_2, Text_#, etc
  2. Right click on the first text box and open properties menu
  3. In the "Options Tab" ensure "Scroll long text" is turned off
  4. Next open up the format tab > Select Format Category : Custom > and open up the Custome Keystroke Script: by selecting "edit"
  5. Enter this java script

if (event.willCommit || event.fieldFull) {

    this.getField("Text_2").setFocus();

}

Do this for all text boxes and make sure to write the name of next text field into the java script. This will tell the text fields that when one is full, to carry onto the next text field assigned.

TOPICS
Macintosh, PDF forms

Views

22.9K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 15, 2017 4
Adobe Employee ,
Apr 06, 2017

Copy link to clipboard

Copied

Hi ckim,

If you have attached picture or snapshot of the form. It could help us responding to your query.

I would suggest you may design a form using Microsoft word and then use prepare form mode of Acrobat. Using Acrobat you can place the field as required. 

Alternatively, you may use Adobe AEM designer formerly know LiveCycle Designer: http://tv.adobe.com/videos/livecycle-designer/

Let us know if you have further questions.

-Tariq Dar.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 06, 2017 0
Community Beginner ,
Feb 07, 2018

Copy link to clipboard

Copied

Has this option been fixed? It seems to be a no brainer that Adobe would include type size so why not then let the designer choose a fixed leading for a multi line response field?  It seems unfathomable that one can't just have the option of saved specific line spacing in the PDF form to send out. Is this to sell us on the LiveCycle? We don't fit LiveCycle parameters. We have warranty forms for a small business.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 07, 2018 1
Adobe Community Professional ,
Feb 07, 2018

Copy link to clipboard

Copied

The PDF specification (not Adobe) provides default settings for the basic appearance parameters. Rich text is more complicated and I don't think it was part of the original PDF spec, so the defaults aren't there.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 07, 2018 1
Community Beginner ,
Feb 12, 2018

Copy link to clipboard

Copied

Yes, my initial form is Rich Text in Illustrator and Acrobat DC.


I can't execute javascript. Neither Illustrator nor InDesign require me to know it in order to create and hold the leading I desire. The form leading was set in Illustrator CC 2017 holds. The issue is with the Acrobat fields created in Acrobat DC. I can not match the fields with the leading of the type created in Illustrator 2017 on the questionnaire. Also, the form has a paragraph field asking for customer input up to 750 words. Very difficult reading the responses with a decent size font but too tight leading as dictated by Acrobat's lack of allowing editable leading.

And if I understand you correctly, if someone is filling out our form and they delete their text and start over then the leading I set is gone???I have just not been able to set and stick with a preferred leading in the fillable fields of Acrobat DC. I searched the menus and find nothing. I was trying various possible work arounds to no avail.

Why have the developers of Acrobat not gotten in sync with the software engineers of Illustrator or InDesign on this as we are up to CC? I still find it unfathomable that the Adobe family of products is not consistent in allowing the  leading default to be changed by the form creator in Acrobat DC.

Many other great things about Acrobat Pro but this is on the level of novice software and another case of not actually having, or listening to feedback of it's users and what they need in their software.

I do thank you for responding and trying to help.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 12, 2018 0
Adobe Community Professional ,
Feb 12, 2018

Copy link to clipboard

Copied

Your guess is as good as mine. Rich text in form fields has been the same in PDF for over a decade, and I've never heard anything about updating it.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 12, 2018 1
Community Beginner ,
Feb 27, 2019

Copy link to clipboard

Copied

I have the same issue. Leading is changed and tested in Acrobat Pro and when opened in Reader, the leading is back to single line default. Seems like a bug but is extremely frustrating.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 27, 2019 0
Adobe Community Professional ,
Feb 07, 2018

Copy link to clipboard

Copied

Yes, there are a couple of ways to do this.

First the field must be set to be Rich Text

1. Enter some text and set the line spacing. Then delete all the text but on space.  This space will hold the formatting. This method is not reliable because if the user deletes the space they loose formatting.

2. Use JavaScript to set to line space formatting after the user has finished entering the text. A validate event works for this.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 07, 2018 0
New Here ,
Jul 04, 2018

Copy link to clipboard

Copied

I found the answer in another thread. How do I change the line spacing in a multi-line text field on a PDF form? (on MAC)

Works on Windows as well.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 04, 2018 1
Community Beginner ,
Dec 11, 2018

Copy link to clipboard

Copied

I'm having the same issue. The button text field options to modify fillable text field only allows the modification of font choice, font size and color (see image bottom right in button and forms section) but it doesn't allow leading options which is silly because that's a huge part of a document layout.

You'll see in Indesign my text field should allow for 4 lines of text to be filled in

Interactive Object 1.JPG

Yet when a person is filling it out the leading does not match the lines I have laid out so that when it prints the text will be on the lines.

Interactive Object 2.JPG

The other option is to have one text field and to carry it over like you would if you have two columns but that method also doesn't work because the text fields don't stay linked so upon export to pdf only the first line shows up as a typable field. 

Interactive Object 3.JPG

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 11, 2018 0
Community Beginner ,
Dec 12, 2018

Copy link to clipboard

Copied

I figured it out, this can not be done in indesign which is something they need to work on because it defeats the idea of making a nice designed interactive pdf form.

In Acrobat

  1. Choose Prepare Form > Select the text field and right click > Select Properties
  2. Select "Options" tab and make sure Multi-Line and Allow Rich Text Formatting is selected > Close this window
  3. Exit out of Prepare Form mode
  4. Add some text in the text field > Highlight it and press CTRL + e > this will open up text field properties > select more... now you can edit your paragraph spacing.

NOTE: The only thing I noticed is that the text field might not hold onto those properties if the text is deleted, it seems to have reverted back to the default spacing.

2nd option, make multiple text boxes and link them together, again this can not be done in indesign and only done in Acrobat

  1. Make multiple text boxes and name them properly. Example Text_1, Text_2, Text_#, etc
  2. Right click on the first text box and open properties menu
  3. In the "Options Tab" ensure "Scroll long text" is turned off
  4. Next open up the format tab > Select Format Category : Custom > and open up the Custome Keystroke Script: by selecting "edit"
  5. Enter this java script

if (event.willCommit || event.fieldFull) {

    this.getField("Text_2").setFocus();

}

Do this for all text boxes and make sure to write the name of next text field into the java script. This will tell the text fields that when one is full, to carry onto the next text field assigned.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 12, 2018 2
New Here ,
Aug 14, 2019

Copy link to clipboard

Copied

Thank you! This works like a charm, with one HUGE ISSUE ... it drops a "letter" from the word when it tabs from one line to the next. Has anyone found a way to avoid this issue?

I wish Adobe would just program in a line spacing tool to the Text Field Properties, it's 2019 ... come on now!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 14, 2019 0
New Here ,
Dec 31, 2019

Copy link to clipboard

Copied

Hi Shannon, i would be appreciated if you can help provide custom code for wrapping text based on input string legnth instead of "event.Full" as stated above.

 

Thank you so much.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 31, 2019 1
New Here ,
Mar 01, 2020

Copy link to clipboard

Copied

AThompson3

Did you find a workaround on the dropped letter? I am having this problem too...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 01, 2020 0
New Here ,
Oct 19, 2020

Copy link to clipboard

Copied

Has anyone been able figure out the orphan/widow fix on this script? I need to stop the missing letter when it drops to the next field and make it so the word isn't split between text fields. The following word below, "falling", is an example of what is happening when it drops to the next text field:

fall

ng

 

So I need it to just drop the whole word to the next field text when it runs out of space.

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 19, 2020 0
New Here ,
Apr 11, 2020

Copy link to clipboard

Copied

Hi Shannon, 

My version of adobe acrobat dc doesn't have a format tab. Trying to figure out how to tell the document to apply the javascipt  to line1 of the document.  I'm not at all familar with javascript.  What would I need to add to the script you provided? 

 

Many thanks,

Jenna

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 11, 2020 0
Most Valuable Participant ,
Apr 11, 2020

Copy link to clipboard

Copied

Click on Tools - Prepare Form and then click on "More" at the right side of the window and then on "Revert to Acrobat Form". In the future, do not tick the box that says "This document requires signatures" when creating the form.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 11, 2020 0