RPAAdvanced OCR
Advanced OCR - Get form
Advanced OCR - Get form
Gets the first occurrence of a specific form in an Advanced OCR result, searching by the key value.
Options
Document analysis
Select the Advanced OCR - Analyze Document action whose result will be used. When this action is inside an Advanced OCR - For each page action, the document of that action is used.
Form key (partial or complete)
Enter the key of the form field to search for.
Page (optional)
Enter the number of the page to search in. Leave it empty to search every page. Inside an Advanced OCR - For each page action, the current page of that action is used.
Returns
Javascript code
js
actions["action-id"].exists // form exists? (Boolean)
actions["action-id"].moreOccurrences // are there more occurrences? (Boolean)
actions["action-id"].key // form key (Text)
actions["action-id"].value // form value (Text)
actions["action-id"].page // page (Number)
Field selection
- exists — form exists? (Boolean)
- moreOccurrences — are there more occurrences? (Boolean)
- key — form key (Text)
- value — form value (Text)
- page — page (Number)
Rules and Conditions
- The Analyze forms option must be enabled in the Advanced OCR - Analyze Document action.
- The comparison uses the exact text and is case-sensitive.
- When there is more than one occurrence, the first one is returned; use the moreOccurrences return to know whether there are others.