Writer, how to limit number of characters in a form field

I’m creating a fillable PDF form. I’m trying to set a character limit on the text field. I would like the control field to only accept 200 characters.Would anyone know how this is done?

Someone asked a similar question on this post but it’s locked. Adding it here for reference.

While in edit mode, get the form control’s properties dialog and set the max. text length.

Hi @Villeroy thank you for the suggestion and fast response. I tried but can’t seem to find this setting. Here’s what I did.

  1. Right-click on form field text box
  2. Selected Control Properties
  3. There are two tabs here General (screenshot attached below) and Events. I don’t see any field to set a text character limit.
  4. I also tried: Right-click text box > `Form Properties > 3 tabs:
    • General
    • Data
    • Event
  5. Can’t see a setting for this :frowning:

Here’s my setup in case it helps:
Version: 24.8.5.2 (X86_64) / LibreOffice Community
Build ID: fddf2685c70b461e7832239a0162a77216259f22
CPU threads: 8; OS: Windows 10 X86_64; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

ask119997.odt (9.9 KB)

I found the solution, the properties field was grayed out which is why I didn’t see it.

  1. Right-click on form field text box.
  2. Select Control Properties
  3. In the pop-pup window there are two tabs: General and Events.
  4. Under General tab the third property from the top is Max. text length. Set the character limit here.
    • If it is greyed out (see screenshot below), than make sure that the property called Text type which is in the same pop-up window is not set to multi-line with formatting.
    • If it is set to Multi-line or Single-line then the character limit field is active.