Home → Using LincDoc 3.1+ → Document Package-Specific Administration → Using Repeating Source Documents
Sometimes there is a need for a source document to be repeated 1 or more times, but it is only known how many times it will be repeated once the user completes their data entry.
For example: Assume you are creating a document package to generate an apartment lease for one to four residents. The package is composed of two source documents: a base lease agreement and a resident application form. The base lease agreement contains a multivalue table to collect the residents names, which you want displayed in the base lease. You also make hidden fields to collect further details for each resident, but you don't want to display the details in the base lease agreement. instead, these details will be shown in the application forms which will follow the base lease.
The table used may look similar to the example below.
Resident name |
Resident address |
<<res_pn#>> |
<<res_addr#[hidden]>><<res_city#[hidden]>><<res_state#[hidden]>><<res_zip#[hidden]>> |
In the application form itself, field definitions similar to the following may exist:
Resident name: <<res_pn#>>
Street Address: <<res_addr#>>
City, State, and Zip Code: <<res_city#>>, <<res_state#>> <<res_zip#>>
To include a generated document for each resident, you would use the inclusion logic option for the source document.