After you transform a form to a page, you may encounter problems with fields that are displayed in columns. On the form, these columns may designate particular groups. Pages have built-in layout logic and do not require that you manually specify the position of a control on a page. The layout of fields on a page may be different from the layout of the fields on the form. On a form in which the layout in columns is used to designate groups, you can modify the form before you transform it so that you do not lose the groups if the field layout is different on the page.

The following illustration shows a form with fields that are displayed in columns.

If you transform this form, the fields are not displayed in the same columns on the page. The following illustration shows the resulting page if you transform this form.

To resolve this issue, modify the form so that it will retain field groups after it is transformed by doing one of the following:

To complete this procedure, you will need:

To indent fields and place them under a header

  1. In the Classic client, on the Tools menu, click Object Designer.

  2. In Object Designer, click Form, select the form that you want to modify, and then click Design.

  3. Add a label above the fields that you want to group. This label is the header for the indented group. For more information, see How to: Create Labels.

  4. Indent the label and text box of each field that you want to group. The label must be indented at least 110 pixels and no more than 330 pixels. To indent, right-click the control, and then click Properties. In the Properties window, modify the value of the Xpos field.

    The following illustration shows the transformed page with group labels so that the columns contain the same fields as on the form.

  5. To save and compile your form, close the form in Form Designer. In the Save Changes window, confirm that the Compile check box is selected, and then click Yes.

To create a frame around fields in a group

  1. In the Classic client, on the Tools menu, click Object Designer.

  2. In Object Designer, click Form, select the form that you want to modify, and then click Design.

  3. Create frames for each group and move the groups of fields into the frames. For more information, see How to: Create a Frame to Contain Controls.

    The following illustration shows the transformed page with frames so that the columns contain the same fields as on the form.

    NoteNote

    If you do not want the original form to show the frames, then set the Border property for the frame to No and set the ShowCaption property to No. The transformed page does not show the frames, regardless of the value of the Border and ShowCaption properties.

  4. To save and compile your form, close the form in Form Designer. In the Save Changes window, confirm that the Compile check box is selected, and then click Yes.

See Also