Hello,
I'm a new user to LCD, and also new to JS. I was redirected here from the Javascript forums.
[i]Hello,
I'm just starting to learn JS, to make some simple scripts for my PDF presentations and forms.
I'm trying to sum different values from a couple of dropdown lists, and showing it in another field:
xfa.resolveNode("form1.page1.NumericField3").rawValue = xfa.resolveNode("form1.page1.DropDownList2").rawValue + xfa.resolveNode("form1.page1.DropDownList3").rawValue + xfa.resolveNode("form1.page1.DropDownList4").rawValue;
I think it is treating the values as strings, cause if the values are 2, 3, 4 the sum field displays 234.
What am I doing wrong? (another user has told me that there's a sum function in LCD, but I don't know how to use it, would someone point me?
And: where is the best (free) document to start learning JS from the basics?
Thank you
PS: Sorry about my poor english, in case I made some bad spelling[/i]
George Kaiser