How to get the page number on which the field is located?


How to get the field location page number?


  • Open the Document Skill in the editor.

  • Create a new text field that will be populated with the page number where another field's region is located, i.e. Invoice Number Page Number.

  • Create a new Advanced Script Rule in the newly created field's Settings > New Rule:

  • Make sure the required fields are selected in the script rule settings and the Changed by the rule option is enabled for the field that will be changed by the rule:

  • The sample script is below:
    Context.GetField("Invoice Number Page Number").Value = (Context.GetField("Invoice Number").ImageRegions[0].Page.Index + 1).toString();
  • The result is the following:

Have more questions? Submit a request



Please sign in to leave a comment.