コミュニティ

How access to the fields using Javascript and base on the Document Definition

Hi,

I want to know how to access to the fields values using Javascript based on the Document Definition that I create using Abbyy flexilayout so please anyone can help. you may please check in the code below how I tried to do this but it doesn't work!

//WScript.Echo( "Succeeded: 1 " + document.Fields.Blocks.refavi.Value);

  //WScript.Echo( "Succeeded: 2 " + document.Fields.Field.Blocks.refavi.Value);

  //WScript.Echo( "Succeeded: 3" + document.Fields.Blocks.refavi.Value);

  //WScript.Echo( "Succeeded: 4" + document.Fields("refavi").value);

  //WScript.Echo( "Succeeded: 5" + document.Fields.Field.Fields.refavi);

  //WScript.Echo( "Succeeded: 5" + document.refavi.value);

 

Best regards.

 

 

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

3件のコメント

  • Avatar
    Permanently deleted user

    Hello,

    You may use this construction: this.Field("<your field name>").Value

    0
  • Avatar
    Permanently deleted user

    Hi Ekaterina,

    I have used the same code in flexicapture; but getting an error as: "No field with name <field name>"

    I have that field in my flexicapture document definition.

    But am not using flexilayout here.

    Please help me to resolve this.

     

    Regards,

    Roselin

    0
  • Avatar
    Permanently deleted user

    Hello,

    Please provide the screenshot that demonstrate the field on your fields pane and clarify where do you want to place the code.

    0

サインインしてコメントを残してください。