SetFormFieldSpecialFormat
Form fields, actions
Description
Adds matching AFSpecial_Keystroke and AFSpecial_Format actions for a ZIP code, ZIP+4 code, phone number or US Social Security number
Syntax
Function TPDFlib.SetFormFieldSpecialFormat(Index: Integer; SpecialFormat: TPDFlibFormSpecialFormat): Integer;Parameters
| Index | One-based form-field index that receives the keystroke and format actions |
|---|---|
| SpecialFormat | fsfZipCode 0, fsfZipPlus4 1, fsfPhoneNumber 2 or fsfSocialSecurityNumber 3; values outside the enumeration are rejected |
Return values
Returns 1 on success or 0 when the field is invalid or PDF/A mode is active