Answered
Can a custom calculation script be overriden?
I have the following script in a custom calculation property:
var a = this.getField("5a.0.4");
var b = this.getField("5a.1.4");
var c = this.getField("5a.2.4");
var d = this.getField("5b1");
var y = this.getField("2ea3").value;
var x = Number(a.value)+Number(b.value)+Number(c.value)+Number(d.value);
if(x != 0 && y>=x){
event.value = 0;
a.display = display.hidden;
b.display = display.hidden;
c.display = display.hidden;
d.display=display.hidden}
else{
event.value = x;
a.display = display.visible;
b.display = display.visible;
c.display = display.visible;
d.display=display.visible}I wish to allow the user to also just type in a manual value, thus overriding the script if desired. Unfortunately, the script overrides the manual entry. Is there a way to switch off the script and allow a manual entry that stays visible?