Do your field names realy have spaces in them? Simplified field notation wouldn't work unless you properly escape the space character.
Here is what I have:
var a = this.getField("Text1");
var b = this.getField("Text2");
event.value = (a.value - b.value)/0.8;
I tried on a separte file, in fact a created file (File, Create PDF, From blank) as a test and it works fine.
But once, on the desired file, that doesn't works
Can you provide a link to the file or a copy of the file?
Some quick explanations on how that works are welcome.
did it work before you applied special rights?
Do you have a copy before you applied any rights etc?
Thanks for the link about the console.
I check what are default setups on the javacript tag and what I have and by unchecking one box which is not on the explnation, think seems to work fine again.
I'll see what it give and let you know