Set the default values for a form

Microsoft Office InfoPath

Show All Show All

Set the default values for a form

A form's default values, which are the initial values a form contains when it is first opened by a user, can all be set at the same time. Default values are stored in fields and are displayed in the controls that are bound to those fields.

Note  Fields that do not appear in the data source are not the same as fields with blank values. If a field does not appear in the data source, the control bound to that field should be an optional section or part of an optional section.

  1. In design mode, click Form Options on the Tools menu, and then click Edit Default Values.
  2. In the Edit Default Values dialog box, select the field whose default value you want to set.

    Note  To change the default values for a field, the check box for the field must be selected, and the field name itself must be selected. A field with a cleared check box will not appear initially in the data source.

  3. In the Default value box, enter the default value for the field. Only fields can have default values.
  4. If the field is a repeating field and you want to specify the number of instances of the field that should initially appear on the form, enter the number in the Number of occurrences of the field or group to insert box.
  5. Repeat steps 2 through 4 for each field whose default value you want to set.