将文本从一个AcroField复制到另一个AcroField

时间:2017-03-04 21:04:13

标签: javascript pdf acrofields

如果勾选了复选框,我正在尝试将名为“Date Signed”的AcroField中的文本复制到字段“In_Person_Date”。我试过了

function sync()
{
  var n1 = document.getElementById('Date Signed');
  var n2 = document.getElementById('In_Person_Date');
  Date Signed.value = In_Person_Date.value;
}
</script>
<input type="text" name="Date Signed" id="Date Signed" onkeyup="sync()">
<input type="text" name="In_Person_Date" id="In_Person_Date"/>

我从另一个答案得到的,但它没有用。

0 个答案:

没有答案
相关问题