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
| Index | The one-based form field index |
|---|---|
| NewValue | The value to assign |
Return values
| 0 | The field or AcroForm could not be found, with details available through LastErrorCode |
|---|---|
| 1 | The value was assigned |