THotPDF.SetFormFieldAdditionalAction Method
Зведення методу: THotPDF.SetFormFieldAdditionalAction Method
Оголошення
procedure SetFormFieldAdditionalAction(const FieldName: AnsiString; Trigger: THPDFFormFieldActionTrigger; Action: THPDFActionBuilder);
Модуль
HPDFDoc
Параметри
| Назва | Призначення |
|---|---|
FieldName | Existing AcroForm field name to find in the generated field list |
Trigger | Field additional-action trigger: KeyStroke, Format, Validate, or Calculate |
Action | Action chain built with THPDFActionBuilder |
Примітки щодо використання
- Call this method after creating the target field and before EndDoc
- The method replaces any existing action for the same trigger key and keeps other /AA entries unchanged
- Use ClearFormFieldAdditionalAction to remove one field trigger entry without disturbing other field actions
- Use the named helpers in THotPDFFormFieldActionConvenienceMethods when code should call one method per field or widget trigger
- Builder validation enforces PDF/A and PDF/X restrictions for action types that are not allowed in those conformance families
- Use AttachFieldKeyStrokeAction, AttachFieldFormatAction, AttachFieldValidateAction, or AttachFieldCalculateAction for the JavaScript-only convenience path
Related API
- THPDFActionBuilderClass
- AcroFormSupport
- THotPDFFormFieldActionConvenienceMethods
- THotPDFAttachFieldKeyStrokeActionMethod