Hi,
I am relatively new to Acrobat Javascript and I am having a problem updating field values. I calculate values for 3 fields. I trigger Javascript to run on MouseDown. I have
var cResponse0 = app.Response(
{
cQuestion: "Enter value 3:",
cTitle: "Value 3 entry"
});
calcVal3 =cResponse0.toString();
this.getField("Field1").value = calcVal1;
this.getField("Field2").value = calcVal2;
this.getField("Field3").value = calcVal3;
My problem is that when the code is run, when I enter a value for cResponse0 the first time, all the Fields update correctly. If, however, I now go back and change the value of cResponse0, Field1 and Field2 update correctly but Field 3 (which has been changed to the correct value - I use app.alert() to check this) doesn not update until I click out of the field. I have been trying a number of things and have been working on this on my own for the last 2 days but I am not making any progress. Any help would be greatly appreciated. Thank you very much in advance.
Regards,
Paul
Also, it should be "app.response", not "app.Response". In your code it's not clear where the calcVal1 and calcVal2 variables are getting set. Is this the complete code you're using? Why are you using "toString()"?
George