1 person found this helpful
1. The problem is you're using non-standard quotes (you're probably using a non-English keyboard layout) in your first line.
Try replacing that line with this one:
var c = this.getField("Field3a");
2. You don't need JS for this. You can use the simplified annotaion script. Just write the field's name and the rest of the formula, like so:
Field3a * 0.1
Oh... duh. I'm sorry. I didn't know how to do the simple script either.
I am not using a non-English keyboard. o_o so I have no idea why that happened with the quotations.
As for the simple script, it isn't working.
I entered the calculations like so:
in Fieldb1, : Fielda1 * 5
Fieldb1, : Fielda1 * 0.1
And when I close form editing and enter a value into Fielda1, the field stays blank.
I don't know what's wrong.
Thank you for the help so far!
Do you maybe have spaces in the names of your real fields?
No, they are named : S.1 , S.2 , S.3 Etc
Do I need to change the . part?
I changed them to S1 S2 S3 etc and it is working now!
Excellent! Thank you so much for your help. I am sorry I am so dense at this.
You have really helped me today! Thank you!