Set fieldname from javascript advanced equation
-
I’m trying to set to certain value a field of type “calculated field” from the Javascript advanced equation editor.
I know that if you return the value, it will appear in the form, but I have one function that computes several values (some values are dependent of other values) and in order to optimize my calculator I want to just use this function call to compute all the necessary fields.
I noticed that CFF always replaces “fieldnameX” with the value of that field.
Currently I use this:
document.getElementById("fieldname" + "13_1").value = years;and it works, but, is there a more elegant way of using “fieldnameX” without replacing it?
Thanks!
The topic ‘Set fieldname from javascript advanced equation’ is closed to new replies.