2014-10-29 98 views
1

我是絕對新手在Javascript中。如何將JavaScript添加到PDF表單?

我有一個PDF格式的表格,並且想爲其添加Javascript操作。假設我想在有人點擊複選框時出現警報。

這裏是我做的:

1,首先打開中的Acrobat Pro形式 - >工具 - >表 - >編輯:

enter image description here

2,然後點擊一個複選框 - >屬性

enter image description here

和選擇操作 - >運行Java腳本

enter image description here

,並添加以下代碼:

<SCRIPT language = "JavaScript"> 
     alert("Welcome to the script tag test page.") 
    </SCRIPT> 

enter image description here

保存後,當我點擊此複選框沒有任何反應。 我不確定我的Java代碼是否錯誤,或者我錯過了Acrobat Pro中的某些內容?

+0

您不需要'