Community

Read value of a field from a script

Hi,

The logic which I want to implement for one of the fields of invoice is that if say suppose a field label "Amount" (labeled field) is not recognized by the OCR due to some reasons. I want to use another field GST (again labeled field) to get the value of the amount.

for this what I plan to do in post processing for Amount is that. 

If Amount.Field.value is null or empty assign the value of Amount.Field.value = GST.Field.value.

Can you please provide me a script to achieve the same.

Also, Is there any repository where I can refer some sample scripts for ABBYY.

0

Comments

1 comment

  • Avatar
    Ekaterina

    Hello,

    We recommend you to use the Field.Text property instead Field.Value when you fill the fields. The code samples you may find in the article: Appendix > Using scripts in ABBYY FlexiCapture > Scripts for customizing processing stages > Sample scripts or Using scripts in ABBYY FlexiCapture > Scripts for customizing processing stages > Sample scripts > Sample scripts for creating custom rules.

    0

Please sign in to leave a comment.