47
Changing Combo Box Properties
In addition to common settings, a Combo Box and List Box fields have the following
additional settings:
Options
Item:
Click
Item
, then give it a name. Click
Add
. Your new item will appear in the
combo box Items List (below in the panel).
Export Value:
Enter a value for the chosen item to be exported to a CGI
(Common Gateway Interface) application during web-based data transfer from
your form.
It is useful practice to specify the export value for each of your items right after
you have added them to the combo box list.
Items List:
Select an item to move it up or down the list. You can also delete
combo box items here, one by one.
Sort Items:
Mark this check box to sort your list items in an alphabetical order.
Allow user to enter custom text:
When checked, the combo box list becomes
editable for users of the form.
Commit selected value immediately:
Combo boxes can be connected to text
fields in such a way that the items selected in the combo box will display in the
corresponding text fields. If you mark this checkbox, as soon as a combo box
item is selected, it will display in the connected text box. If you leave it
unchecked, the chosen item will only display in the text field when focus has
moved over from the combo box (either by mouse movement or tabbing).
To make a text box display the item selected a combo box, write a custom
calculation script for your text box that captures the input of the combo box.
The following script uses a text field (Text Field 1) and a combo box (Combo Box 1).
For Text Field 1 to capture the input of Combo Box 1,
1. Select
Text Field 1
.
2. Click
Calculate
in the Form Properties panel of the Organizer.
3. Mark
Custom calculation script
.
4. Click
Edit
, and enter the following:
event.value=this.getField(“Combo Box 1”).value;
Format (Combo Boxes only)
Use
Format settings
to control the type of data users can enter into the form field.
For details see
Setting Format
.
Validate (Combo Boxes only)
Run a custom validation script to ensure that the value entered by a user is correct.
For details see
Setting Validation
.