|
About number fields
A number field lets users enter or edit numbers. This field contains a control that a user can click to increase or decrease the value in the field in predefined increments.
You can make a number field an editable selection list by adding list items. If you do this, the field will also contain a dropdown button.
Number field when drawn:
Number field when complete:
Adding number fields
1 Choose Fields > Text & Numbers > Number.
2 Add this field to the form.
3 Update the following fields on the Field Attributes form as required:
Contents - Data tab |
Default |
The default value for the field. |
Minimum |
The minimum value allowed in the field. |
Maximum |
The maximum value allowed in the field. |
Multiplier |
Multiplies the field value by this number before sending it to the server. |
Increment |
Increases or decreases the field value by this amount when the user clicks the up or down control. If you specified a multiplier, we recommend that you set "Increment" to the same value as the multiplier. |
Format |
A text string that contains a C sprintf format for longs placeholder (%ld) for the number field. The number field value is inserted into the text string wherever you type the placeholder. For example, you might type Your account expires in %ld days. |
Contents - List tab |
List |
The list entries, if you want to add list items. Separate list entries with semicolons (;). You can map text to numbers so that users entering a particular number will see its list entry in a more meaningful way. To do this, type the list entries in the following format, separating each entry with a semicolon: text=value For example, if you specify 1 Dozen=12 users who type 12 and press Tab will see 1 Dozen displayed in the field. |
Choose from list only |
Forces users to choose from the list. |
Hide list of choices |
Hides your list entries from users so that they can't choose them. This is useful if you have entered special entries that do not make sense as user choices. |
Dropdown icon ID |
The resource ID for the icon on the dropdown list button. The value Default results in the standard down arrow. |
4 Update the Contents - Field Control tab, if you want this field to control another field.
| |