admin管理员组文章数量:1414605
I have a form which I am creating in Adobe Pro.
The "Grandtotal" field is determined by a variety of radio buttons selected.
My first step is to give each of the radio buttons a value.
My set of radio buttons is called "Options" - Radio button 1: "15" Radio button 2: "25"
What javascript could I use to put the value of the selected radio button (either 15 or 25) into my "Grandtotal" field ?
I have tried the following:
var option1 = this.getField("Options");
var option2 = this.getField("Options");
var total = this.getField("Grandtotal").value;
event.value = option1 or option2
Thank you
I have a form which I am creating in Adobe Pro.
The "Grandtotal" field is determined by a variety of radio buttons selected.
My first step is to give each of the radio buttons a value.
My set of radio buttons is called "Options" - Radio button 1: "15" Radio button 2: "25"
What javascript could I use to put the value of the selected radio button (either 15 or 25) into my "Grandtotal" field ?
I have tried the following:
var option1 = this.getField("Options");
var option2 = this.getField("Options");
var total = this.getField("Grandtotal").value;
event.value = option1 or option2
Thank you
Share Improve this question asked Oct 31, 2012 at 20:24 user1426583user1426583 3193 gold badges9 silver badges25 bronze badges1 Answer
Reset to default 1I don't know the use of Javascript in PDFs, but what I found online, it looks like you should use something like this:
var option1 = this.getField("Options1"); // Get first radio button
var option2 = this.getField("Options2"); // Get second radio button
var total = this.getField("Grandtotal"); // Get grand total textbox
if (option1.checked) {
total.value = option1.value;
} else if (option2.checked) {
total.value = option2.value;
}
Now, I'm not sure what you mean by my set of radio buttons is called "Options"
, because that would mean retrieving the radio button fields might be different.
本文标签: Radio Button Value in pdf (javascript calculation)Stack Overflow
版权声明:本文标题:Radio Button Value in pdf (javascript calculation) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745194552a2647073.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论