Formatting text fields

Text fields in a document can contain static text, data fields, auto text codes, or combinations of these text types. When you add a new text field, its formatting is determined by the control defaults, but you can change any of the formatting options. The following list provides some useful formatting suggestions:

Number formatting

Number formatting options include decimal spaces, currency symbols, time formats, percentage formats and so on. For example, the text fields in the following document sample have different number formats applied to them. The one on the left is a date in the MM/DD/YYYY format, while the one in the middle, another date, is in the Month Date, Year format. The text field on the right is a number formatted as currency, with no decimal.

Example of Number Formatting

Prerequisite

To set number formatting for a text field

  1. Open a document in Design or Editable Mode. Use a document with a dataset that contains dates and numbers.

  2. Add two date data fields and a numeric data field, as shown in the image above.

    1. Click the Insert tab and then click Text.

    2. Add the text field to any section in the document.

  3. Right click in the text field, and then click Properties and Formatting. The Properties and Formatting dialog box opens.

  4. In the Format section, select Number.

  5. Select 04/07/1998 in the Type list.

  6. Click OK to return to the document.

  7. Select the middle text field.

  8. Repeat steps 4-6 above, except this time, select April 4, 1998 from the Type list.

  9. Select the text field on the right.

  10. Select Number from the Format section of the Properties and Formatting dialog box.

  11. Select Currency from the Number list.

  12. Type 0 (zero) in the Decimal places field.

  13. Type $ in the Currency symbol field.

  14. Select the appropriate option from the Currency position drop-down list.

  15. Click OK to return to the document.

  16. To view the results, from the Home menu select Export and then PDF.

Vertical text and padding

Padding defines the space between the text and the borders of the text field (left, right, top, and bottom).

For example, the Top padding property defines the space between the text and the top border of the text field. For the horizontal text field shown below, it is set to 10. All other padding values remain at the default of one. The height mode is set to fixed, so that the text field does not expand to fit the contents. Copy the text field and set Text direction to 90 Degrees to display the text field vertically. Update the text to reflect its new position. As shown in the image below, Top padding still defines the space between the text and the top border of the text field.

Example of Vertical Text and Padding

To pad text

  1. Open the document in Design or Editable Mode.

  2. Create a text field:

    1. From the Insert menu, select Text.

    2. Add the text field to any section of the document.

  3. Right-click in the text field and then select Properties and Formatting. The Properties and Formatting dialog box opens.

  4. From the Format category select Alignment.

  5. In the Padding section type a measurement value in the Left, Top, Right, and Bottom fields.

  6. Click OK to return to the document.

Related topics