Develop > Tailoring Best Practices > Form tailoring > Grouping related controls

Grouping related controls

Forms Designer offers two controls that allow users to group related sets of controls in a container.

  • Group
  • Frame

You can determine which of these two controls to use by which client you want the container to appear in.

If you want Web client users to be able to collapse and expand the container, then use a Group control. See Group below.

If you only want Windows client users to see a container with line borders, then use a Frame control. See Frame below.

Group

The Group control provides a container with a text label to logically group items and controls. Any control you place within a Group control inherits the visibility condition of the Group.

Example Group control

Example Visible Condition for a Group control

The benefits of a Group control are listed below.

  • You can make the container a section that collapses and expands in the Web client.
  • The container has a text label to clearly identify the purpose of the controls within the container.
  • The controls within the container inherit the Visible Condition property of the Group. The controls within the group are only visible when the group itself is visible.
  • If you move or delete a Group control, all the controls within the container are also moved or deleted.

The costs of a Group control are listed below.

  • You have to update the text label should you ever change the controls within the container.
  • You have to localize the label if you want to make the form available in other languages.

In general, a Group control is best used in the following circumstances.

  • You want a visual indicator to highlight that a group of controls are related.
  • You want to allow users to efficiently manage the available form space in the Web client.
  • You want to manage the visibility settings of a group of controls from one place.

If you want to change the appearance of the line around the container, then use a Frame control instead. However a Frame control does not allow users to collapse and expand the section in the Web client.

Frame

The Frame control provides a container with a beveled line surrounding the items and controls in the container. Any control you place within a Frame control inherits the visibility condition of the Group. Since the Web client does not display the line surrounding the Frame control, it almost always better to use a Group control rather than a Frame control.

Example Frame control in Windows client

Example Frame control in Web client

The benefits of a Frame control are listed below.

  • The container has a border to indicate that the controls are within a container.
  • The controls within the container inherit the Visible Condition property of the frame. The controls within the frame are only visible when the frame itself is visible.

The costs of a Frame control are listed below.

  • The line surrounding the Frame control is not visible in the Web client
  • Users cannot collapse and expand the container in the Web client

The Frame control has less functionality than the Group control. In most cases, you should use a Group control rather than a Frame control.

Related concepts

Form tailoring use cases