4D v16.3Creating a multi-page form |
||
|
4D v16.3
Creating a multi-page form
Creating a multi-page form
You can create multiple pages for an input form. If you have more fields or variables than will fit on one screen, you may want to create additional pages to display them. Multiple pages allow you to do the following:
Multiple pages are a convenience used for input forms only. They are not for printed output. When a multi-page form is printed, only the first page is printed. There are no restrictions on the number of pages a form can have. The same field can appear any number of times in a form and on as many pages as you want. However, the more pages you have in a form, the longer it will take to display it. A multi-page form has both a background page and several display pages. In the Form editor, objects that are placed on the background page may be visible on all display pages, but can be selected and edited only on the background page. In multi-page forms, you should put your button palette on the background page. You also need to include one or more objects on the background page that provide page navigation tools for the user. For information on adding page navigation tools, see the Adding page navigation controls section. Note: The Options page of the Form Wizard contains an option that instructs the Form Wizard to create a multi-page form automatically if the fields you select don’t fit on one page. If you selected this option, your form may initially have more than one display page. When the Form Wizard creates more than one display page, it puts buttons, variables, the form title, and decorative rectangles on the background page 0. Every form has at least one display page and a background page. The current page number appears in the toolbar of the form window. This area also includes a pop-up menu that allows you to select the displayed page. To add a display page:
To insert a display page before the current page:
When you want to display the background page or move to another display page, you can either use the page navigation tools in the Tools palette or the page pop-up menu in the Form editor window. To display the background page (page 0):
Note: There should be no confusion between using the Page 0 menu item from the Display submenu and actually making the background page the currently displayed page. Selecting the Page 0 menu item from the Display submenu only displays or hides the items of the background page in the current page. For more information, refer to “Showing/Hiding Elements in the Form Editor” in Form editor. To use the page navigation tools:
If you click Previous Page while viewing the first page of the form, the background page appears. If you click Previous Page while viewing the background page, nothing happens. If you click Next Page while viewing the last page of the form, 4D asks if you want to create another page for the form. To display any page:
You can delete unwanted display pages from a multi-page form. Any fields or other objects on the deleted pages will be deleted as well. The remaining pages are renumbered. You cannot delete the first page or the background page in a form that consists only of these two pages. To delete a page from the form:
When you create a multi-page form, you need to provide a way for users to move from one page to another. 4D provides three ways that you can use to add navigation tools:
Adding page navigation buttons Using a tab control
|
PROPERTIES
Product: 4D
HISTORY
ARTICLE USAGE
4D Design Reference ( 4D v16) |