These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Summing values of radio-buttons.

bikeryamaha
Registered: May 9 2007
Posts: 28

Hi. I am new to designer forms, and hope you will support me on the following two issues:
a):
A LiveCycle designerform holds a number of radio-buttons, and a numeric filed. I tried to populate the sum of the values of the radiobuttonfields by the following javascript:
(Calculation on the numeric field)
this.rawValue=this.resolveNode("btn1").rawValue + this.resolveNode("btn2").rawValue

However, this code just concatenates the values, it doesn't do the sum!

b):
A Text input field (Name) is located on page 1. The input value should appear on several pages, how do I do in Designer forms?

Thanks on beforehand! :)

My Product Information:
LiveCycle Designer, Windows
pforms
Registered: Nov 17 2009
Posts: 87
a) Need a little more information/description of what you are doing.
If you are summing the values from a series of radio buttons:
Sum(Rb[*])

b) Global binding. Name the text fields where this data should display the same
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
What are the exported values when checked and unchecked?

I believe you do not use the resolve node on the line you are summing, but use this command prior to performing the sum function or addition. The resolve node makes sure any dynamically added fields are used in the array calculations.

George Kaiser

bikeryamaha
Registered: May 9 2007
Posts: 28
Thanks :)

Problem a):
One series of radiobuttons has the values '5', '10' or '20' as export value when selected. This series carries the name 'btn1'. The next series has the values '20', '40' or '80' when checked. This series has the name 'cbo1'. The calculation code is set on a third (numerical) field called 'Tot'. (If the third rdo-btn in both series are selected, the numeric field should read '100').
In my case the code: "this.rawValue=this.resolveNode("btn1").rawValue + this.resolveNode("cbo1").rawValue" reads out '2080').

:) :)