FormEditorSetFieldScript Method
Set JavaScript for a PushButton field. If old JavaScript existed, it will be replaced by the new one.

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public bool SetFieldScript(
	string fieldName,
	string script
)

Parameters

fieldName
Type: SystemString
The fully qualified field name.
script
Type: SystemString
The Java script to be added/placed into a push button field.

Return Value

Type: Boolean
true if field scrip was successfully set.
See Also