Epi Info™ User Guide

Form Designer


How To: Use the Number Field

The Number field only accepts numeric values. Letters and most symbols cannot be entered into this type of field, however the negative sign (-) and the decimal point (.) are allowed. Number fields can have a valid upper and lower range. For numbers that must have a specific number of decimals, you can specify a required pattern. For example, if your data requires two decimal places, your number field could have the pattern “##.##” which would allow a number between -9.99 to 99.99.

Note: The negative sign takes one of the pattern spaces.

Therefore, the number “-7” entered into a field with this pattern would appear as “-7.00”, whereas the number “5” would appear as “05.00”. The leading zeros are not included in calculations, analyses, or output. The following figure provides an example of how a Number field appears in Enter (circled in blue).

Image showing an example of a Number field in use.

To add a Number field:

  1. Open the Number Field Definition dialog box.
  2. Enter the Question or Prompt. The text entered in this field will display on the canvas and prompt the user to enter a response.
  3. Click in the Field Name text box or press the tab key. Epi Info automatically suggests a field name based on the Question or Prompt, however, it is very important that field names be short, intuitive, and usable. The field name is used for data validation in Check Code and when doing analyses. Field names cannot start with a number or contain any spaces or non-alphanumeric characters (except the underscore character “_” is permitted).

Note: It is best to simplify the field name at this time. Field names cannot be changed after data collection starts.

  1. Optionally, select a pattern from the Pattern drop-down list (optional). You can also create a new pattern by typing in the desired pattern using the # symbol and the decimal point as needed. The default setting is None.
  2. To limit the range of responses, check the Range checkbox (optional). Type a lower and upper limit in the Lower and Upper fields.
Image showing the Number Field Definition Dialog box.

For information on other attributes that may be available, see the topic on Field Attributes.

  1. Click OK. The Number field appears on the canvas.
Page last reviewed: September 16, 2022, 12:00 pm