eseabrook2008
Technical User
First off, I'm using JavaScript from within Adobe LiveCycle Designer (if that makes any difference).
I'm trying to assign a value to an object (txtbox) by referencing the txtbox name which is stored in a variable.
Here's how it works...
math.value= xfa.form.form1.rb.rawValue; --> a radio button is selected assigning a number to the variable math
test.value=("Live" + math.value) --> the word Live and the value in math are concatenated together in the variable test
There are objects on my form with the name Live1, Live2 and Live3. If radiobutton 1 is select, a value is entered into the object called Live1, if rb2 is select, the object called Live2 is filled, etc...
I've tried this...
xfa.form.form1.(varobj.value)=test.value; --> the error says invalid assigment left-hand side
and...
xfa.form.form1.("Live" + math.value).rawvalue = test.value; --> the error says XML filtering predicate operator called on incomplete XFAObject
Ideas?
I'm trying to assign a value to an object (txtbox) by referencing the txtbox name which is stored in a variable.
Here's how it works...
math.value= xfa.form.form1.rb.rawValue; --> a radio button is selected assigning a number to the variable math
test.value=("Live" + math.value) --> the word Live and the value in math are concatenated together in the variable test
There are objects on my form with the name Live1, Live2 and Live3. If radiobutton 1 is select, a value is entered into the object called Live1, if rb2 is select, the object called Live2 is filled, etc...
I've tried this...
xfa.form.form1.(varobj.value)=test.value; --> the error says invalid assigment left-hand side
and...
xfa.form.form1.("Live" + math.value).rawvalue = test.value; --> the error says XML filtering predicate operator called on incomplete XFAObject
Ideas?