Using choice subform sets

A choice subform set is a variation of the subform set object that allows you to customize the display of specific subforms from within the set through the use of conditional statements. As with subforms sets, choice subform sets are bound to data from a data connection. However, using choice subform sets provides a greater level of control over which subforms within the set are displayed at run time. For example, you can configure a choice subform set to display instances of a repeating subform by using different text colors, depending on the value of a specific field within that repeating subform.

To create choice subform sets

You can create a choice subform set from either an existing subform set or from an existing subform object.

To create a choice subform set from an existing subform set

  1. Select a subform set object.

  2. In the Object palette, click the Subform Set tab and select the Select One Subform from Alternatives option from the Type list.

To create a choice subform set from a subform object

Select a subform object and select Insert > Wrap in Choice Subform Set.

To add and remove subforms in choice subform sets

You can add subform objects to a choice subform set or remove subform objects from a choice subform set in using either of these methods:

  • Using the Edit Data Nominated Subforms dialog box

  • Manually editing the contents by dragging subform objects into or out of the choice subform set by using the Hierarchy palette.

    Important: Removing a subform from the Alternative Subforms list by using the Edit Data Nominated Subforms dialog box completely removes the subform object from your form design. If you want to preserve the subform object but remove it from the choice subform set, you must manually drag the subform object out of the choice subform set by using the Hierarchy palette.

To add a subform to a choice subform set

  1. Select a subform set object.

  2. In the Object palette, click the Subform Set tab and click Edit Alternatives.

  3. Click the Add button to insert a new Alternative Subforms list item. You can also drag and drop subform objects into the choice subform set by using the Hierarchy palette.

    Adding a new subform adds a duplicate of the currently selected subform. If no subform is selected, a new unnamed subform is added to the choice subform set.

  4. Use the Up  and Down  buttons to move the new subform entry to the preferred location. Ordering entries in the Alternative Subforms list is important because entries are processed sequentially at run time, and the first entry with an expression that evaluates to true appears in the form.

To remove a subform from a choice subform set

  1. Select a subform set object.

  2. In the Object palette, click the Subform Set tab and click Edit Alternatives.

  3. Select an entry from the Alternative Subforms list and click the Delete button  .

// Ethnio survey code removed