I am trying to construct a weighted average script. I am trying todo this; however, the sytnax is wrong. Could you help?
I am doing a custom calculation script
var x = this.getField("X").value
var y = this.getField("Y").value
var z = x * .40 + y * .60
event.value = z
What exact error message you're getting?
I would try explicitly converting the text fields' values to numbers, like
var z = (+x * .40) + (+y * .60)
Are you using LiveCycle Designer?
What are your input values?
What is your expected output?