最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to automatically calculate the value of a text field in Adobe Acrobat with javascript based on the contents of another text

programmeradmin6浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 2

youll have to do something like this

this.getField("total").value = this.getField("filed1").value + this.getField("filed2").value;

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论