function FocusNextFormField: Integer;
function FocusNextFormField(AcrossPages: Boolean; WrapDocument: Boolean = True; MaxPagesToScan: Integer = 256): Integer; overload;
The no-argument overload keeps the existing current-page cycle through FormFieldTabOrder; passing AcrossPages=False has the same behaviour
Passing AcrossPages=True moves forward through the current page and then later pages, skipping pages without eligible fields; success changes PageNumber and returns the new page-local field index
Use these members when an application needs to walk fields from code, drive voice-assisted form filling or expose the active field to an accessibility layer without relying on mouse hit testing
Both overloads follow each page's declared R/C/S/A/W policy and its documented fallback through FormFieldTabOrder; explicit cross-page traversal additionally filters ineligible widgets
WrapDocument defaults to True; False stops at the document boundary with -1 and preserves the page and focusMaxPagesToScan defaults to 256 and must be 1..4096; each inspected page counts, including the current page and a repeated origin page after wrappingif Pdf1.FormFieldCount > 0 then
Pdf1.FocusFormField(0);
ShowMessage(Pdf1.FocusedFormFieldText);