SetFormFieldValueForced

Form fields

Description

Sets a form field value while deliberately bypassing the field read-only flag

Use this function only when the caller has explicitly chosen to overwrite locked fields, such as the force-write mode of SetFormValues

Syntax

Delphi

Function TPDFlib.SetFormFieldValueForced(Index: Integer; Const NewValue: WideString): Integer;

Parameters

IndexThe one-based form field index
NewValueThe value to assign

Return values

0The field or AcroForm could not be found, with details available through LastErrorCode
1The value was assigned