You can customize
the menu commands that are used to add or remove rows in a repeating table when users fill out a form. To quickly rename all the default menu commands that are associated with a repeating table, change the name of the repeating group to which the table is bound. If you want more control over specific commands, or if you do not want to change the group name, you can customize each command name separately. You can also customize the hint text that appears below the repeating table on the form, which users click to insert a new row.
Rename all the menu commands for a repeating table
- In design mode, right-click the Repeating Table label below the table, and then click Show Data Source on the shortcut menu.
- In the Data Source task pane, right-click the selected repeating group or field, which is the group or field that the table is bound to, and then click Properties on the shortcut menu.
- In the Name box in the Field or Group Properties dialog box, type a new name.
The following default menus will be updated with the new command name. Any additional commands that you add to the repeating table will reflect the new name.
Menu Command name Section submenu on the Insert menu group or field name Shortcut menu Insert group or field name aboveInsert group or field name below
Remove group or field name
Notes
- If users have already filled out forms based on the form template, changing the name of a field or group can cause data loss in those forms.
- If the form template is based on a sample form, pre-existing XML Schema, database, or Web service, you can change only the names of fields and groups that you have added to the data source.
Add or customize a single menu or toolbar command name for a repeating table
- In design mode, right-click the Repeating Table label below the table, and then click Repeating Table Properties on the shortcut menu.
- On the Data tab in the Repeating Table Properties dialog box, click Customize Commands.
- In the Table Commands dialog box, click the action in the Action list whose command name you want to add or customize.
- In the Location for the command
list, do one of the following:
- To add a command to a menu or toolbar, select the check box for the menu or toolbar.
- To customize an existing command, select the name of the menu or toolbar that contains the command.
- In the Command name box, type the new name.
- If the command appears on a toolbar, type a new ScreenTip in the ScreenTip box.
Customize the hint text for a repeating table
- In design mode, right-click the Repeating Table label below the table, and then click Repeating Table Properties on the shortcut menu.
- In the Repeating Table Properties dialog box, select the Show insert button and hint text check box, and then type the new hint text in the box.
Note 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