Copy link to clipboard
Copied
I have 3 text fields that populate from another text field (Chronological age), each of the 3 text fields has a custom calculation based of the chronological age. The fields are working great but I want the ability to over ride them. I know I could possibly enter this as a custom validation in the Chronological Age field, but that field already has a custom calculation working it. I am fine with creating a check box that when checked, the other 3 text fields do not calculate and are left blank, but when I attempted to use the codes already presented in the forum they did not work. The code I am using in the 3 text fields is similar and starts with"
var v = this.getField("ChronologicalAge").valueAsString;
if (v=="") event.value = "";
else {
var score = Number(v);
if(score>=0 && score<=1.99) event.value = "Chronological age snapshot of 1 month old babies in this area:...."
Any help would be appreciated, this is the last step and I am dying to get this done! Thank you!
Have something to add?