1. Compact Sections of Fields/Controls
Scenario/Problem: | You have many related fields to present to the user and want to reduce the length of your form. |
|
Solution: | Use a four-column table layout to compact the sections of similar fields. |
When you have sections of similar fields on your
form, it is a recommended best practice to use one of the four-column
table layouts. To use a four-column table layout in your form or
section, select the Tables menu on the Insert ribbon bar and select one
of the four-column layouts, as shown in Figure 1.
2. Configure Dynamic Sections
Scenario/Problem: | You have optional information that must be filled out only if another option is selected. |
|
Solution: | Create a rule to show only the optional sections when another field value is selected. |
Hiding or showing sections is another recommended
method to enhance the user experience. Optional or conditional fields
should only be shown if needed. Although this can be implemented by
using optional section controls, it is more aesthetic to use a check
box to control the visibility of the optional section.
To do this, follow these steps:
1. | On your form, add a check box control and a section control, as shown in Figure 2.
(Optionally, you may add fields within the section, but that is not
necessary to wire up the rule.) The check box will control the
visibility of the section.
|
2. | Select the section on your form and click Manage Rules on the Home ribbon bar. The Rules pane appears.
|
3. | In the Rules pane, click New and select Formatting, as shown in Figure 3, to add a new visibility rule.
|
4. | Enter a rule name and click None in the Condition section. The Condition dialog appears.
|
5. | In the Condition dialog, enter the condition such that the value of the check box is not equal to True, as shown in Figure 4, to determine when the section control will be hidden. Click OK.
|
6. | In the Rules pane, click the Hide This Control check box to set the formatting action of the rule, as shown in Figure 5.
|
7. | Preview
your form to test the rule. Initially, the section is not visible, but
if you check the check box, the conditional section appears, as shown
in Figure 6.
|