About Creating and using fragments in form designs

You are tasked with creating a collection of forms. From experience, you know that the first form that you create normally involves some trial and error before you get it just right. However, after you create that first form, you begin to find areas where you can create shortcuts to speed up and improve the process so that the remaining forms you create go together much faster.

For example, you discover that the majority of the forms you are creating include a delivery address part. Instead of creating the delivery address subform in each new form, you copy the first delivery address subform you created and paste it into a separate XDP file. That way, you can easily copy the delivery address subform and paste it into the other forms that you create. When you have to change the delivery address part, either you make the change in every form, or you make the change in the separate XDP file and then replace the delivery address part in every form.

In Designer, these reusable parts are called fragments , and instead copying the part from a separate file each time you need to use the part, you can insert a reference to the required fragment and the fragment appears in the form. Then, when you update a fragment, all forms that reference the fragment reflect the changes.

All fragments are included in the form when it is saved as a PDF file.

About the sample forms

Designer includes a selection of complete sample forms. Each one includes a form design, sample data, and/or schema, and the final version of the form.

The sample forms that are installed in EN\Samples\Forms\Purchase Order\Form Fragments\Forms, under the Designer installation folder, illustrate simple and complex ways in which fragments may be used.

The ...\Form Fragments\Forms folder includes three form designs:

  • Purchase Order Interactive.pdf

  • Purchase Order Dynamic Interactive.pdf

  • Purchase Order Dynamic.xdp

The fragments that are referenced in these sample form designs are installed in EN\Samples\Forms\Purchase Order\Form Fragments\Fragments.

You will use the form designs, fragments, and sample data in the Form Fragments folder for this tutorial. Therefore, it is recommended that you make a backup copy of this folder before you begin.

Click to continue: Opening the sample fragment in the Fragment Library palette

// Ethnio survey code removed