43
To use this feature, click one of the two radio buttons on the Selection
Change tab:
Do Nothing: Use this option if you don’t want to run a JavaScript action
when a user makes a list box selection.
Execute This Script: Use this option to attach an action, and then
click the Edit button to open the JavaScript Edit window. If you’re familiar
with JavaScript language, you can write your own or copy and paste a
predefined JavaScript in the script editing window. Click OK to close the
JavaScript Edit window. The JavaScript appears in a preview box on the
Selection Change tab. Note that you can use the arrow keys to view the
script, but you can’t edit it.
Singling out the Signed tab
Options on the Signed tab apply only to the Signature field type. Its com-
mands enable you to specify actions that occur in a form when data is entered
into a blank signature field. You add signature fields to a form in the same
manner as you do other form fields by using the Digital Signature tool. (See
the “Adding Fields to Forms” section, earlier in this chapter, if you need a
refresher.) The Digital Signature tool creates a blank signature field that can
be filled out as part of completing a form. (To find out all about digital signa-
tures, see Chapter 11.)
To configure a blank signature field, click one of the three radio buttons on
the Signed tab:
Nothing Happens When Signed: Use this default option if you don’t
want any actions to occur to data entered in a field.
Mark as Read-Only: Provides a means of locking portions of a form at the
time it is signed off in the signature field, in essence “freezing” the form at
that moment in time. Select one of three items on the drop-down list: All
Fields, All Fields Except These, and Just These Fields. If you select either
of the latter two options, click the Pick button to open the Field Selection
dialog box, where you choose the fields you want to render as read-only.
Pick a field by selecting the check box next to the field name in the Mark
Fields as Read Only list box. When you’re finished adding fields, click the
OK button.
This Script Executes When the Signature Field Is Signed: Click
this radio button to execute a specific JavaScript action when data is
entered in a signature field. Click the Edit button to open the JavaScript
Edit window. If you’re familiar with JavaScript language, you can write
your own or copy and paste a predefined JavaScript in the script editing
window. Click OK to close the JavaScript Edit window. The action script
appears in a preview box below the radio button. Note that you can use
the arrow keys to view the script, but you can’t edit it.
318
Part IV: PDFs as Electronic Documents