Examples: Filling out a form with @DialogBox
You have a form that has many fields, but a user creating a new document only fills in a few of them. You create another hidden form named "Dialog" that contains a layout region with the fields that the user typically fills in. At the beginning of the main form, you create a button with the following formula. When the user clicks the button, the formula displays a dialog box with the "Dialog" form. The user fills in the fields in the dialog box and clicks OK. The fields transfer to the main form.
@DialogBox("Dialog"; [AutoVertFit] : [AutoHorzFit])