Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在 Acrobat 中构建一个报告表单,并有一个日期字段,我想通过按页面上的表单按钮来更新它。(我在想的是一个非打印按钮。)
我需要在按钮中放置什么 Javascript 以使其在日期表单字段中插入当前日期。
一种选择:在按钮的 Actions 选项卡上输入 JS-
var fld = this.getField("datefield");
fld.value = util.printd("yyyy/mm/dd",new Date());
希望这可以帮助,
迪米特里
www.pdfscripting.com