Skip to main content
Participant
January 26, 2023
Question

Need to format text inside a Forms Text Field

  • January 26, 2023
  • 1 reply
  • 420 views

Client is looking to be able to type in a "numbered" to-do list within the text field, example:

 

1. First task to be done
in the procedure is....

2. Next task

 

Is there a way to get the first line to be a hanging indent?

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
January 28, 2023

Text formatting in an AcroForm text field is implemented with "Rich Text".  Setup the field to be multi-line and rich text. Then when the user is typing text into the field they can select both paragraph and font properties for any, or all, of the text in the field.  These parameters are set from the  "Properties Toolbar", which is access from the right click dropdown menu on the main Acrobat Toolbar, or pressing Ctrl-E.

Numbered lists are not one of the options, but hanging paragraphs are. 

 

A subset of rich formatting parameters can be set through the scripting model. You can use this to automatically format the text for a numbered list. It's a somewhat complicated process, but unfortunately the text-indent property needed for the hanging paragraph setting is not available in JavaScript. 

 

Basically, this feature is not practical in PDF forms. 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often