Creating PDF forms

Previously, in Designing your PDF Forms, we looked at PDF Form layout. Let’s now look at actually creating a PDF form. We’ll focus on the addition of form fields to the page and subsequent field labeling—the addition of supporting text and graphics to the form is covered previously.

Adding form fields

A series of form fields can be added to the page, depending on the type of form you want to create. Typically a mix of form fields will make up your finished form design.

Fields are created from the Form toolbar or via Insert>Form Field. You assign an internal unique name to each field and then set a variety of properties. Each form field has its own set of Form Field Properties which can be modified to suit your form implementation.

  • The Form toolbar is turned off by default. Display it by going to View>Toolbars>Form.

  • Form field names can contain “+”, “-”, “_”, but no special characters.

Let’s look at each Form field in turn.

Icon

Form Field Name

When to use?

PagePlus tbr form webbutton Creating a PDF Form

Button*

Use when specifying an action that can be triggered by a button click (example).

PagePlus tbr form submitbutton Creating a PDF Form

Submit button*

Use when sending the form recipient’s completed form data to Serif Web Resources or to your own Web server. A Form Submit Wizard is activated to enable quick and easy button setup.

PagePlus tbr form resetbutton Creating a PDF Form

Reset button*

Use when you want to add a button to clear all form fields of data (often complements the above Submit button).

PagePlus tbr form printbutton Creating a PDF Form

Print button*

Use when you want to add a print button to your form.

PagePlus tbr form checkbox Creating a PDF Form

Check Box

Ideal when you want to multiply select a series of options displayed side by side. A good alternative to a Combo Box or List box if space allows (example).

PagePlus tbr form webeditbox Creating a PDF Form

Text Field

Use for adding text, numbers or a mixture of both (example).

PagePlus tbr form combobox Creating a PDF Form

Combo Box

For selection from a scrollable list of items in a drop-down menu where only one item can be selected (example). The box also allows data entry to be input into this box type. Smaller than a List Box.

PagePlus tbr form listbox Creating a PDF Form

List Box

For selection from a scrollable list of items; supports multiple selection (example) and advanced actions on selection of menu items.

PagePlus tbr form radiobutton Creating a PDF Form

Radio Button

Good for selection of a single mutually exclusive item from a grouped subset of choices (example).

PagePlus tbr form signature Creating a PDF Form

Signature

Used for the digital signing of secure documents.

PagePlus tbr form soundclip Creating a PDF Form

Sound Clip¨

Use to insert a PDF sound clip (.wav, .wave, .aif, .aiff, .aifc, .mp3).

PagePlus tbr form movieclip Creating a PDF Form

Movie Clip¨

Use to insert a PDF movie clip (.avi).

PagePlus tbr form formfieldproperties Creating a PDF Form

Form Field Properties¨

Use to view and edit the properties of the form fields.

PagePlus tbr form taborder Creating a PDF Form

Tab Order¨

Use to check or change the tab order of the fields.

* This button shares a drop down menu with other buttons marked with an asterisk. The button type previously chosen will always be displayed on the Form toolbar.

¨ These items are found on the Form toolbar.

Buttons/Submit button

A whole range of buttons of varying design and function can be created. Some examples include:

  • Advanced – Displays menu options that are only applicable for advanced uses.

  • Show All – Displays all menu options.

  • Next page – Jumps the form recipient to the next page.

  • Open – Opens a file or web link.

  • Import – Imports form data.

  • Reset – Clears all form data.

The PagePlus tbr form submitbutton Creating a PDF Form button is specifically designed to run a Form Submit Wizard. This ensures that configuration of web-ready forms is made that much easier.

To create a button:

  1. Select the PagePlus tbr form webbutton Creating a PDF Form Button option from the Form toolbar.

  2. Move your PagePlus cur pictureimport Creating a PDF Form cursor to the location for your button and click once.

  3. Right-click on the button and choose Form Field Properties from the drop-down menu.

  4. In the General tab, overwrite the current Name with a unique internal name. You can also choose several other optional settings (see General tab).

  5. Go to the Options tab, and enter a new Caption name (the text that appears on the button).

  6. Go to the Actions tab and click the Add button.

  7. In the resulting Action dialog, select an Event that will be used to trigger the action.

  8. Choose an Action from the drop-down menu.

  9. Change the properties displayed under the selected action. The options shown change depending to the action selected.

Check box

Check boxes are boxes containing a simple check, cross, or other symbol. The form recipient clicks once to select or deselect the box.

Example:

Would you like to be notified of any upcoming events in the near future? PagePlus form checked Creating a PDF Form

To create a check box:

  1. Select the PagePlus tbr form checkbox Creating a PDF Form Check Box option from the Form toolbar.

  2. Move your PagePlus cur pictureimport Creating a PDF Form cursor to the location for your box and click once.

  3. Right-click on the box and choose Form Field Properties from the drop-down menu.

  4. In the General tab, overwrite the current Name with a unique internal name. You can also choose several other optional settings (see General tab).

  5. Go to the Options tab, and choose a Style for the check box—a check or cross is the most common—and whether the box is checked by default.

Text field

Text fields are used for entering input, either textual or numerical. Validation can be performed on any text field.

Example:

Name, Address, Cash amounts, Phone Numbers.

For large text fields remember to check the Multiline check box to allow line breaking.

To create a text field:

  1. Select the PagePlus tbr form webeditbox Creating a PDF Form Text Field option from the Form toolbar.

  2. Move your PagePlus cur pictureimport Creating a PDF Form cursor to the location you want to place the text field and click once.

  3. Right-click on the text field and choose Form Field Properties from the drop-down menu.

  1. In the General tab, overwrite the current Name with a unique internal name. You can also choose several other optional settings (see General tab).

  2. Go to the Options tab to:

    • change the text alignment of the entered recipient data.

    • set some Default Text, if necessary.

    • restrict the length of data that can be input with Limit Length.

    • select Multiline, allowing text input to break across more than one line.

    • select Scrollable—this means a scroll bar is available for long text fields.

    • make the field mask input with asterisks by using Password.

    • use File select to allow form recipients to enter a filename. The file contents are used instead of direct text input in the text field.

    • apply Spell check. This enables spell checking on data input.

  3. Go to the Format tab to set the format that the form recipient is able to input, i.e. None, Number, Date, Time or Custom.

  4. Go to the Validate tab to run a simple (numeric only) or custom validation script. This checks that input is valid.

  5. Go to the Calculate tab to perform any calculations on numeric fields only.

  6. Click OK.

  7. To change the text field into a numeric field, change the Format as: option in the Format tab to Number.

  8. Don’t use numeric fields for telephone numbers. Use unformatted text fields instead.

Combo box

The Combo Box presents a list of menu items in a drop-down menu, and optionally allows the form recipient to enter their own items.

Example:

PagePlus form combobox example1a Creating a PDF Form

Click on drop down to expand Combo Box

PagePlus form combobox example1b Creating a PDF Form

To create a combo box:

  1. Select the PagePlus tbr form combobox Creating a PDF Form Combo Box option from the Form toolbar.

  2. Move your PagePlus cur pictureimport Creating a PDF Form cursor to the location for your Combo Box and click once.

  3. Right-click on the combo box and choose Form Field Properties from the drop-down menu.

  1. In the General tab, overwrite the current Name with a unique internal name. You can also choose several other optional settings (see General tab).

  2. Go to the Options tab, type in an Item and click the Add button. The item is added to the Item list.

  3. Keep adding each item that you want to the Item list.

  4. If necessary, reorder any selected item in the list using the adjacent Up or Down button.

  5. You can also:

    • Sort items alphabetically or numerically.

    • apply Check spelling. This enables spell checking on input.

    • Use selected list item as default.

    • make the Combo box Editable.

    • validate input on selection with Commit on Select.

  6. Go to the Format tab to set the format that the form recipient is able to input, i.e. None, Number, Date, Time or Custom.

  7. Go to the Validate tab to run a simple (numeric only) or custom validation script. This checks that input is valid.

  8. Click the OK button.

List box

The List Box presents a list of items in a static box with scroll bar support. Multiple selection of items is supported.

You can also use Commit on Select to run JavaScript scripts when you select menu items. This is ideal when you want to display supporting pictures or sounds with your menu items.

For example, to select Beethoven, Mozart and Strauss, use Ctrl-click on the menu items:

PagePlus form listbox1 Creating a PDF Form

To create a list box:

  1. Select the PagePlus tbr form listbox Creating a PDF Form List Box op
    tion from the Form toolbar.

  2. Move your PagePlus cur pictureimport Creating a PDF Form cursor to the location for your List Box and click once.

  3. Right-click on the list box and choose Form Field Properties from the drop-down menu.

  4. In the General tab, overwrite the current Name with a unique internal name. You can also choose several other optional settings (see General tab).

  5. Go to the Options tab, type in an Item and click the Add button. The item is added to the Item list.

  6. Keep adding each item that you want to the Item list.

  7. You can also:

    • Sort items alphabetically.

    • Use selected list item as default.

    • make the list box support Multiple selection.

    • validate selection or run JavaScript code immediately on item selection with Commit on Select.

  8. Click the OK button.

Radio buttons

Radio buttons operate slightly differently to other form fields. To operate correctly, Radio buttons which are intended to be grouped, e.g. for Male/Female Gender selection, must both be configured to be a part of the same configurable Field Group. Field groups are set in Form Field Properties, General tab.

For example, in a field group called “group1″ you could include radio buttons as Yes/No options:

PagePlus form13 Creating a PDF Form

Alternatively, you could have another set of radio buttons, in a different field group (called “Gender”), which can determine the sex of the form recipient.

PagePlus form12 Creating a PDF Form

  • When placing radio buttons on the page you can leave them as PagePlus form17 Creating a PDF Formunchecked (default) or change them to PagePlus form18 Creating a PDF Form  checked with the Checked by default option on Form Field Properties (Options tab).

To create a radio button:

  1. Select the PagePlus tbr form radiobutton Creating a PDF Form Radio Button icon from the Form toolbar.

  2. Right-click on the radio button and choose Form Field Properties from the drop-down menu.

  3. In the General tab, overwrite the current Name with a unique internal name. You can also choose several other optional settings (see General tab).

  4. Add a Field Group that your grouping of radio buttons will share.

  5. In the Options tab, choose a radio button Style. You can also:

    • Make the button Checked by default.

  6. Click the OK button.

To create a digital signature field:

See Using Digital Signatures.

Using field labeling

For the form field types Check box, Text field, Combo box, List box, or Radio button, it doesn’t make much sense to add the form field to the page without some form of labeling. This indicates to the form recipient what the associated field relates to, e.g. a Radio button or Check box without an accompanying description is clearly pointless.

  • The Button form field has built-in labeling—it adopts the Caption field as its label.

  • For good form design, ensure that labeling is positioned consistently and is placed close enough to the form field to avoid confusion.

To apply labels:

  • Add your label as Artistic Text (see Using artistic text). This lets you apply standalone text, allowing greater flexibility.

  • Group the label and form field together.

  • Right-click and select Arrange>Align Objects from the drop-down menu. Choose a vertical or horizontal alignment option, and select a distribute objects option.

Form field properties

Form field properties control how the form field will operate when the form recipient enters their input. A series of tabs are arranged so that some tabs, e.g. General, Appearance, Options, or Actions, are common to all the form fields but others, such as Format, Validation and Calculations are only displayed for text fields and combo boxes.

Tabs frequently used include:

  • Options tab: To populate the contents of a combo box with item selections.

  • Actions tab: To submit a form select the “MouseUp” Event and “Submit a Form” action (for a button object only).

  • Format tab: To change a text field to a numeric field.

For a detailed breakdown of every form field see Form Field Properties.

To access Form Field Properties:

  1. To view the properties do one of the following:

  2. Right-click on a selected form field and choose Form Field Properties.

  3. Double-click the form field.

  4. Select the form field, and click the PagePlus tbr form formfieldproperties Creating a PDF Form button from the Form toolbar.

  1. Click on one of several tabs for editing: General, Appearance, Options, Actions, Validate, or Calculate.

  2. Click the OK or Cancel button to exit the dialog.

Publishing your PDF Form

  • Click PagePlus tbr std publishpdf Creating a PDF Form Publish PDF on the Standard toolbar.
    – or -

    Select Publish as PDF… from the File menu.

See Exporting PDF files for more information.

  • If you Publish as PDF using PDF/X-1 or PDF/X-1a compatibility, any PDF form fields present will be converted to graphics and will not be available. Choose an Acrobat option instead.

Creating a PDF Form