What makes a PDF fillable? Form fields, names and radio groups explained

A fillable PDF is an ordinary PDF plus named form fields. How text boxes, checkboxes, dropdowns, radio groups and date fields work, and why names matter.

Open the PDF form builder Free, in your browser, nothing uploaded.

Some PDFs let you click into a box and type; others only let you look. The difference is not the drawing on the page: lines and boxes printed on a form are just pictures. What makes a PDF fillable is a hidden list of form fields stored alongside the pages. This article explains what those fields are and how to plan a form people can actually fill in, using the PDF form builder. The people who receive your form can type into it with fill PDF and add a signature with sign PDF; if the PDF needs pages reordered or removed first, use organise PDF.

What it is

The PDF standard (ISO 32000) defines an interactive form called an AcroForm. It is a list of fields, and each field has:

  • A name, such as full_name. Software that collects the answers reads them by name, so every field needs its own.
  • A type: text, checkbox, choice (dropdown) or radio button.
  • One or more widgets: the boxes you see on the page. A widget has a rectangle measured in points (1/72 inch) from the bottom-left corner of the page. An A4 page is about 595 by 842 points.

Most fields have exactly one widget. Radio buttons are the exception: a question like “Paid? Yes / No” is one field with two widgets. All the buttons share the field’s name, and each button carries its own choice value. Picking one switches the others off, because they belong to one field. That is why the builder asks for the same group name and a different choice on each button.

A date field is a text field with two small scripts attached: one checks keystrokes and one formats what was typed, in a pattern such as dd/mm/yyyy. Viewers that run form scripts (Acrobat, for example) use them; simpler viewers treat it as an ordinary text box.

Required is a flag on the field. Viewers that check it warn when the form is submitted or saved empty; others ignore it.

Field names cannot contain a full stop, because the PDF format uses the dot to mean “a field inside another field” (for example address.city).

How to use it

  1. Choose a PDF. Each page appears as a picture.
  2. Press a field type (Text box, Checkbox, Dropdown, Radio button or Date field), then tap the page where it belongs.
  3. Drag the blue box into place and pull its corner to size it to the printed line.
  4. In Your fields, give each one a clear name, and fill in the extras: choices for a dropdown, a group name and choice for each radio button, a format for a date, and whether it must be filled in.
  5. Press Download fillable PDF. If something is wrong, a message says what to fix.
  6. Open the saved file in your usual viewer and try filling it in before you send it.

A worked example

A sports club wants a one-page membership form on A4. It places:

  1. a text box full_name,
  2. a text box email,
  3. a date field date_of_birth, format dd/mm/yyyy,
  4. a dropdown plan with Junior, Adult, Family,
  5. two radio buttons, both named paid, with choices Yes and No,
  6. a checkbox agree_rules, marked as must be filled in.

That is 7 widgets but 6 fields, because the two radio buttons form one group. Reading the saved file back gives 3 text fields (the date is a text field with its scripts), 1 dropdown, 1 checkbox and 1 radio group with 2 buttons. The full_name box, placed a tenth of the way in and about 8% down the page, sits roughly 59 points from the left edge and 740 points up from the bottom.

Now suppose the first box had been named full.name, the email box had been added twice, and one radio button had no choice. The builder would refuse to save and list three problems: the full stop in the name, the two fields called email, and the radio button in paid that needs a choice name.

Checked with the tools

The example form was built in Node with the builder’s own code (src/lib/docs/pdfform.ts) by scripts/blog-figures/pdf-form-builder-guide.mjs: buildForm() wrote it, listFields() read back 6 fields with 7 widgets, and check() returned the three messages above. The blank page saved at 584 bytes and the finished form at about 11 KB. The chart repeats the build with 0 to 60 text boxes on one blank A4 page to show what each field adds to the file.

File size as text boxes are added to a blank A4 pageFile size as text boxes are added to a blank A4 page02040600102030405060Text boxes on the pageSaved PDF (KB)fibub.com
Saved file size for a blank A4 page with 0 to 60 text boxes, built with buildForm() from the PDF form builder in Node. The form set-up costs a few KB once; after that each box adds about 0.83 KB, so even a long form stays small.

Where it is used

  • Clubs, schools and charities. Sign-up sheets, permission slips and volunteer forms that people fill on a phone instead of printing.
  • Small businesses. Order forms, client intake sheets and job request forms, with a dropdown for the service.
  • Offices. Leave requests or equipment sign-out forms with named fields, so answers can be pulled into a spreadsheet by name.

Common mistakes

  • Vague names like text1, text2. Whoever collects the answers sees only names. Use phone, start_date and so on.
  • Radio buttons with different names. They then act as separate fields, and more than one can be on. Give the group one name.
  • A checkbox where you mean “pick one”. Use radio buttons for Yes or No, so both cannot be ticked.
  • Boxes too small for the answer. Size each text box to the longest likely answer, or tick Several lines for addresses.
  • Not testing. Fill the form once yourself in a browser and on a phone before sending it.

Questions people ask

Is a fillable PDF the same as an online form? No. The answers stay in the PDF file; nothing is sent anywhere unless the person emails the file back.

Can a scanned form be made fillable? Yes. The scan is just a picture, so place the fields over its printed lines.

Why does my date field accept any text on some phones? The format check is a script, and some viewers do not run form scripts. The field still works as a text box.

Sources

  • Fields are written as an AcroForm, the form format defined in the PDF specification (ISO 32000), with pdf-lib (MIT). Date fields use the standard Acrobat date format scripts (AFDate_FormatEx). Page pictures use pdf.js (Apache 2.0). All of it runs in your browser.

If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.

Tools in this article

Read next