A3DPDFPageFieldSetActionJavascriptFromString

A3DStatus A3DPDFPageFieldSetActionJavascriptFromString(A3DPDFPage *pPage, const A3DUTF8Char *pcFieldName, const A3DUTF8Char *pcJavascriptString)
A3DStatus A3DPDFPageFieldSetActionJavascriptFromString(A3DPDFPage* pPage, const A3DUTF8Char* pcFieldName, const A3DUTF8Char* pcJavascriptString)

Function to attach JavaScript to a form field.

The JavaScript is defined as a string.

Parameters

pPage: The Page object to work with.

pcFieldName: The name of the form field. Only Acroform fields are supported.

pcJavascriptString: The string which contains the JavaScript.

Returns

A3D_SUCCESS in case of success or an error code