Community

Document Assembly Based on Checkmark Field on 1st Page

Hi Everyone,

I have a document (application form) that has multiple sections. The first section (1 page) is a checklist which the interviewer fills out by hand. There are a series of checkboxes on the single page that makes up Section 1 that relate to whether various other sections of the document should be present. So the document might look like this:
  1. Section 1 - 1 page - Checklist
  2. Section 2 - 2 pages - Personal Details
  3. Section 3 - 1 page - Bank Details
  4. Section 4 - 1 page - Medical Details
Section 1 contains a list of checkboxes for Sections 2 - 4. I'd like to be able to use the result of the recognised checkbox for assembly check.

So if on Section 1 the interviewer has ticked the checkbox for Bank Details I need to check the document has Section 3. If the interviewer has not ticked the checkbox for Bank Details I need to check Section 3 does not exist. i.e. Section 3 may or maynot exist and needs checking vs the checkbox in Section 1 and an assembly error creating if needed.

Can anyone point me in the correct direction? I'm assuming a document assembly script, I'm happy to work with vbscript or C#, if anyone has a sample that does something similar or can start me off I can finish / adapt it.

Many thanks

Richard

Was this article helpful?

0 out of 0 found this helpful

Comments

2 comments

  • Avatar
    Permanently deleted user
    Hello,

    There are actually two ways to check your document validity:
    1)Assembly script as you mentioned.
    Example of a simple check(might not be 100% precise):
    for (int i=0; i
    {
    if(Documents.Field("Checklist").Field("BankDetails").Text=="Yes")
    {
    if(!Documents.Field("Bank Details").IsMatched)
    {
    AssemblingErrors.AddSectionOmittedError(Documents[0].Field("Bank Details").Index, Documents[0].Field("Bank Details"));


    }
    else
    {
    //maybe something happening here as well - if checkmark is selected and section is matched==everything is ok
    }

    }
    else
    {
    if(Documents.Field("Bank Details").IsMatched)
    {

    //if checkmark is NOT selected but section is there
    }
    else
    {
    //maybe something happening here as well - if checkmark is NOT selected and section is NOT matched==everything is ok
    }

    }
    //all other checks should go inside for loop since you probably want to check every document in a batch
    }

    2)Rule script.
    The difference is they throw different kinds of errors and mechanisms are different. But in the end your document will end up with some kind of error nonetheless.

    If you need some more scripts example please consider using this link: http://knowledgebase.abbyy.com/article/1456

    Hope that helps,
    Vladislav
    0
  • Avatar
    Permanently deleted user
    Excellent, thank you Vladislav, your sample script will certainly help, appreciate it
    0

Please sign in to leave a comment.