Insert a section
You can use a section to organize controls on your form for your users. A section contains other controls and is bound to a group.
When you insert a section onto your form, you are essentially inserting an empty container. For the section control to be useful, you must insert other controls inside it.
Insert a section (automatically create the data source)
When you insert a section onto your form, you can have Microsoft Office InfoPath 2003 automatically generate the data source. If you do this, InfoPath creates a group that is bound to the section.
- In design mode, place the insertion point where you want to insert the section.
- If the Controls task pane is not visible, click More Controls on the Insert menu.
- In the Controls task pane, select the Automatically create data source check box.
- Under Insert controls, click Section.
- To add controls to the section, drag the control that you want from the Controls task pane into the section.
Note You should not move an existing control into the section, because the control's field will not be part of the section's group.
- To test the section, click Preview Form on the Standard toolbar.
Insert a section (bind to an existing group)
- In design mode, place the insertion point where you want to insert the section.
- If the Data Source task pane is not visible, click Data Source on the View menu.
- In the Data Source task pane, right-click the group that you want to bind the section to, and then do one of the following:
- To insert a section that contains controls, click Section with Controls on the shortcut menu, if it is available. The controls will be bound to the fields in the section's group.
- To insert a section that does not contain controls, click Section on the shortcut menu.
Note If you do not see Section on the shortcut menu, make sure that the group does not repeat.
- To test the section, click Preview Form on the Standard toolbar.
Notes
- InfoPath offers other "container" controls that are similar to sections but that offer additional functionality. To create a section that users can insert or delete, you can use an optional section. To insert a section that can be replaced with another section, use a choice group. To create a section that users can insert multiple times (like a record in a database), use a repeating control, such as a repeating section.
- 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