Please enable JavaScript to view this site.

iService Forms User Guide

The $Include command works similar the .asp include function. It allows you to include one form into another placing the contents of the referenced form directly into the calling form. This allows you to reuse forms that contain common information, or to break large forms into smaller and more workable components. The include command will only insert the form body for the referenced form and will ignore any actions that might be specified on that form.

 

Available Parameters for $Include

Parameter Name: -formID (required parameter)

 

The format of the command is $Include -formID'#'$ where # is the ID of the form to be inserted.

 

Example:

$Include -formID'5'$ -- this will case the form to substitute the body of form 5 at this location.

 

Parameter Name: -indent (optional parameter)

The -indent parameter generates spacing for the included form HTML when the actual form.aspx page is generated. This can be useful if you are trying to debug or review the code that is generated by the $Include function.

 

Example 1:

$Include -formID'5' -indent'  '$

    

This example will include two spaces before each line of HTML included from form 5.

 

Example 2:

The real line 1<br />

$include -formID'5' -indent'  '$

The real line 2<br />

 

If form 5 included two rows of HTML (This is line 1, This is line 2), the form generated would have the following HTML.

Indent

 

Essentially, whatever is entered as the value for the indent parameter will be a prefix for every line within the form that is included.