Cannot enter calculations for fields
It is a Bug, not an idea.
When trying to insert a calculation into a form field to show the new date (also with other simple calculations), for example
var f = this.getField("Heute");
f.value = util.printd("d.m.yyyy",new Date());
I can insert it, but when clicking OK the field is empty and nothing calculates.
There seems to be an error, snce this has worked befor – or I am doing it wrong, but I cannot see how.
I have tried putting your script in text box and it works for us.
Hope you are putting this script under Properties-> Custom Calculation script.
If it still doesn't work for you, could you please share your file with us along with your changes?