Assembly script with conditional documents depending on the value of a field
Assembly script with conditional documents depending on the value of a field
The script in this example is used to assemble documents into document sets defined by a Document Set Definition. The Document Set Definition contains a section named Borrower’s form and references to the following Document Definitions:
- Passport
- Guarantor’s documents
- Co-borrower’s documents
- Employer reference
- Co-borrower’s name
- Loan sum
- If the loan sum is less than the first threshold value, the document set only needs to contain a passport.
- If the loan sum is greater than the first threshold value but less than the second threshold value, the document set needs to contain a passport and an employer’s reference.
- If the loan sum is greater than the second threshold value, the document set needs to contain a passport, an employer’s reference and a guarantor’s documents.
Assembly script that checks for missing documents
Assembly script that checks for missing documents
The script in this example works with the Identification Documents Document Set Definition. The Document Set Definition contains references to the following Document Definitions:
- Passport
- Driver’s license
