
##################################
A3DPDFPageFieldSetActionJavascript
##################################

.. c:function:: A3DStatus A3DPDFPageFieldSetActionJavascript(A3DPDFPage *pPage, const A3DUTF8Char *pcFieldName, const A3DPDFEEventActionType eEventActionType, const A3DUTF8Char *pcJavascriptString)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DPDFPageFieldSetActionJavascript(:c:type:`~A3DPDFPage`\ \* **pPage**\ , *const* :c:type:`~A3DUTF8Char`\ \* **pcFieldName**\ , *const* :c:enum:`~A3DPDFEEventActionType` **eEventActionType**\ , *const* :c:type:`~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.
   
      **eEventActionType**\ : The action type. Only :c:enumerator:`~kA3DPDFEventPageOpened`\ and :c:enumerator:`~kA3DPDFEventPageClosed`\ are relevant at page level.
   
      **pcJavascriptString**\ : The string which contains the JavaScript.
   
   
   **Returns**
   
   
      A3D_SUCCESS in case of success or an error code
   
   




