admin管理员组文章数量:1402315
I've got a fillable PDF form my client is using for taking orders. It includes a chart with various fields and multiple rows that all end in a "Subtotal" field. I want to automatically calculate this subtotal field so that the user does not have to punch in the currency themselves.
The value of that field needs to be based off of another field. The user fills in this other field with the total quantity they want. I need to automatically take the quantity they enter and multiply it by a price that I set myself.
How can I do this using javascript in Adobe Acrobat?
I've got a fillable PDF form my client is using for taking orders. It includes a chart with various fields and multiple rows that all end in a "Subtotal" field. I want to automatically calculate this subtotal field so that the user does not have to punch in the currency themselves.
The value of that field needs to be based off of another field. The user fills in this other field with the total quantity they want. I need to automatically take the quantity they enter and multiply it by a price that I set myself.
How can I do this using javascript in Adobe Acrobat?
Share Improve this question asked Jan 29, 2012 at 19:09 jkupczakjkupczak 3,0518 gold badges37 silver badges58 bronze badges1 Answer
Reset to default 2youll have to do something like this
this.getField("total").value = this.getField("filed1").value + this.getField("filed2").value;
本文标签:
版权声明:本文标题:How to automatically calculate the value of a text field in Adobe Acrobat with javascript based on the contents of another text 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744351457a2602073.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论