Radio Button - Adobe 12001196 - Acrobat - Mac Manual

Javascript
Hide thumbs Also See for 12001196 - Acrobat - Mac:
Table of Contents

Advertisement

Options Tab
The
Allow user to enter custom text and Check spelling are not available and Multiple
selection is available.
Region/Name
Multiple Selection
Table Notes. See
Actions Tab
The Actions tab shows the same set of properties as for buttons. For details, see the
Actions Tab
Selection Change Tab
The action of the list box can be set with the field level
"Keystroke".
Example:
f.setAction("Keystroke", "ProcessSelection();");
Miscellaneous Programming Notes
See the

Radio Button

A radio button field may be created either by the UI for Acrobat, or by the
Doc
with the same name. Programmatically, a radio button field is created as follows:
this.addField("myRadio", "radiobutton", 0, [400, 442, 412, 430]);
this.addField("myRadio", "radiobutton", 0, [400, 427, 412, 415]);
var f = this.addField("myRadio", "radiobutton", 0,
f.setExportValues(["Yes", "No", "Sometimes"]);
This would create a series of three radio buttons on page 0; each radio button would be 12
points wide and 12 points high. A default appearance is given to the field. The export
values of the different buttons are defined by using setFocus.
The UI for a radio button is exactly the same as that of a check box. See the section on
Check Box
button field.
General Tab
The General tab shows the same set of properties as for buttons. For details, see the
General Tab
Acrobat JavaScript Scripting Guide
Options Tab
show the same set of properties as the comobox, with the exception that
See Reference
multipleSelection
Table Notes
for buttons.
Miscellaneous Programming Notes
Object. Unlike other form fields, a radio button requires multiple fields to be created
[400, 412, 412, 400]);
to see how to change the appearance, set the options and actions of a radio
for buttons.
Example
f.multipleSelection = true;
of the combo box.
of the combo box.
Using Acrobat JavaScript in Forms
Creating form fields programmatically
and a trigger name of
setAction
addField
4
of the
71

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat 6.0

Table of Contents