Change the name of a field or group
If users have already filled out forms based on your form template, changing the name of a field or group can cause data loss in those forms.
In addition, if your form template is based on a sample form, pre-existing XML Schema, database, or Web service, you can only change the names of fields and groups that you have added to the data source.
- In design mode, if the Data Source task pane is not visible, click Data Source on the View menu.
- If your form uses more than one data source, click Main in the Data source list. You cannot change the names of fields or groups in a secondary data source.
- Double-click the field or group whose name you want to change.
- On the Data tab in the Field or Group Properties dialog box, type a new name for the field or group in the Name box.
Notes
- Field or group names cannot contain spaces. They must begin with an alphabetic character or underscore ("_"), and they can only contain alphanumeric characters, underscores, hyphens ("-"), and periods (".").
- The information in this topic may not apply if you are working with a form designed using Microsoft Office InfoPath 2003 without the service pack installed. Learn more
You can also change the name of a field that is bound to a control by double-clicking the control, and then typing a new name in the Field name box.