I am facing a strange situation. So I have a Quick Fields session which does the follwing for each page at Page Processing Level:
Page 1:
1. Creates 4 global tokens and set their values to empty (just under Pre-Classification Processing)
2. Read if their is any barcode on the page 1
3. If there is no barcode on page 1, then we will go under condition 2 (which is if global tokens are empty and it will get true here as because of no barcode on page one, no values were assigned to the global tokens)
4. Condition 2 doesn't do much and it just resets the values for global tokens to empty (which are anyways empty at this page 1)
Page 2:
5. Now page 2 has a barcode and barcode module will read the barcode.
6. Condition 1 will get true (which is setup as if barcode is not empty)
BUT BUT BUT, quick fields at this point says that barcode 1 is empty (why???). Please see the screenshot attached.
Page 3:
7. Page 3 has no barcode, so Quick Fields will simply go under condition which says 'if barcode is empty' and nothing will happen. So at the end all tokens are empty (though QF was able to read barcode at second page) and hence no values gets assigned to the template fields
Now the strange things is, this same session works for the following types of documents:
1. Single page document with no Barcode
2. Single page document with a barcode
3. Two pages document with barcode on 2nd page
4. Four pages document with barcodes on page 1 and 3.
But for a 3 pages document where barcode is on page 2, this session doesn't perform right.
Any thoughts guys? Where do you think I am doing it wrong?