Adding the optional business
To add an optional section with a layout table for the business group, follow these steps.
Add the optional section and controls
Right-click the Section tab, and choose Section Properties to open the Section Properties dialog box.
Select the Do Not Include The Section In The Form By Default option, and select the Allow Users To Insert The Section check box to make the section optional.
Select the Show Insert Button And Hint Text check box, and type Click Here to Insert Business (Work) Address or something similar in the text box, as shown here. If you don t mark the check box, the optional section placeholder isn t visible. Click OK.
Drag the business group node to the optional section, and choose Controls In Layout Table to add a two-column, nine-row table. Expand the width of the table to the full width of the optional section.
Select column B, split the column into four columns (remembering to deselect the merge
State and ZIP Code labels and resized text boxes fit within a single right column, so split row 3, column E into three columns, and move these two label/text-box pairs to the split cells.
Delete the four empty rows, add a caption, reduce the height of the optional section and repeating section, and drag the bottom of the master table to the bottom of the repeating section.
Save your changes, and click Preview Form to check your work so far. Figure 5-2 shows the preview with the optional section added.
Figure 5-2: This preview shows the Contact1.xsn template s final design.
The examples in this chapter
Using the sample source and merged files
At this point, the form you ve produced is
short on graphic accouterments. You can spiff up the form a bit by
adding borders to your tables. Adding borders, like adding dividing
lines, aids users in identifying specific form sections. You also
To add a border around the master form, click the master
table s selection handle at the upper left of
the table, and choose Table, Borders and Shading. Then click the
Outline button, and select a border width, such as 2 1/4 points.
For each border that you want make different, click it and make the
changes. (If you don t click the four outside
Use the same technique to add an outside border to an individual table, but reduce the width to 1 1/2 points or fewer. To improve readability, set label cell Left Padding to 3 pixels.
When you add the border around a master form with a title, the light gray border under the title disappears. To restore it, add a horizontal, 6-point, light gray inside border to the master form. It s also a good design practice to add a space in front of the title text.
If you decide to add inside (cell) borders, accept the default 1-point width.
Figure 5-3, on the
Figure 5-3: This version of the Contacts1 form has every possible border added.