THotPDF.SetFormFieldAdditionalAction Method
THPDFActionBuilder under the field widget /AAResumen del método: THotPDF.SetFormFieldAdditionalAction Method
Declaración
procedure SetFormFieldAdditionalAction(const FieldName: AnsiString; Trigger: THPDFFormFieldActionTrigger; Action: THPDFActionBuilder);
Unidad
HPDFDoc
Parámetros
| Nombre | Propósito |
|---|---|
FieldName | Existing AcroForm field name to find in the generated field list |
Trigger | Field additional-action trigger: KeyStroke, Format, Validate, or Calculate |
Action | THPDFActionBuilderAction chain built with THPDFActionBuilder |
Notas de uso
- 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
/AAentries unchanged - Use
ClearFormFieldAdditionalActionto remove one field trigger entry without disturbing other field actions - Use the named helpers in
THotPDFFormFieldActionConvenienceMethodswhen code should call one method per field or widget trigger - The method replaces any existing action for the same trigger key and keeps other /AA entries unchanged
- Use
AttachFieldKeyStrokeAction,AttachFieldFormatAction,AttachFieldValidateAction, orAttachFieldCalculateActionfor the JavaScript-only convenience path
Related API
- THPDFActionBuilderClass
- AcroFormSupport
- THotPDFFormFieldActionConvenienceMethods
- THotPDFAttachFieldKeyStrokeActionMethod