Add Page Expression Forms to an Existing Page

The AddPageExpressionForms element allows you to add page expression forms to an existing page without directly editing the spec for that page. When you include the AlterExistingPages element on a spec, you can then include the child AddPageExpressionForms element to add page expression forms.

After you identify the page with its GUID in the AlterPage element's PageID attribute, you can insert the AlterPageExpressionForm element. Then you can identify the data form instance by its GUID in the PageExpressionForm element's DataFormInstanceID attribute.

<AlterExistingPages>
<AlterPages>
<AlterPage PageID="edafd74a-b523-4842-8fd7-6a925d232b58">
<AddPageExpressionForms>
<PageExpressionForm DataFormInstanceID="578da07f-9f83-4d9d-9442-ec04b37ea4ed"/>
</AddPageExpressionForms>
</AlterPage>
</AlterPages>
</AlterExistingPages>

With these lines in your new spec, you can add a page expression form to an existing page without ever touching the spec for that page.