Creating a form in a table
To help lay out a form neatly, it is convenient to insert form controls and labels in the cells of a table. By doing so, you can ensure that controls and labels are nicely aligned with each other. Normally, however, if you insert form controls in table cells, Namo WebEditor will create a separate form inside each cell. This is usually not desirable, since the form controls will not be in the same form with each other.
To avoid this problem and ensure that all the form controls in a table exist in the same form, follow the steps below when creating a form in a table:
- Create a table with enough rows and columns to accommodate all the form controls you want. (You can add more rows or columns later, if necessary.)
- On the Develop menu, click Form Field in theForm section, and then click Insert With Form Tags to disable automatic <form> tag creation. (When disabled, no check mark appears next to the menu command.)
- Insert the desired form controls and text labels in the desired table cells.
- When you are finished inserting form controls, leave the insertion point inside the table.
- Click Form on the toolbar. (If the Form command is not visible on the toolbar, you can add it to the toolbar on the Customize dialog box. Select Format on the Categories list to find the Form command.)
- Specify desired values for the form’s properties and click OK, or just click OK if you plan to specify the properties later.
If the display of special tag marks is enabled, you should now see a dashed outline around the entire table, indicating the presence of a form.
When you create a form in a table using the method described above, Namo WebEditor sometimes inserts an empty paragraph inside the form, below the table. You can safely delete this empty paragraph. To avoid inserting the empty paragraph in the first place, select any cell in the table before step 5.