Copy link to clipboard
Copied
There is an answer to this initial subject - my question relates to the sequence that occurs if any one of the group of radio buttons IS selected.
My example in English is:
If no radio button in the group is selected no calculation is performed (the fields that reference this could show a zero or "NA" - either would be fine)
BUT if any radio button in the group IS selected the value of that button is used as the denominator in a division calculation involving content from another field.
My startlingly bad attempt at interpreting this in javascript for a custom calculation follows:
var calculatedPDiff=this.getField("MFI80").value;
if(MFI80=="Off")event.value="NA";
else event.value=this.getField("TGI").value / this.getField("MFI80").value;
How many things am I doing wrong?? 🙂
Change:
if(MFI80=="Off")event.value="NA";
To:
if(calculatedPDiff=="Off")event.value="NA";
Copy link to clipboard
Copied
Change:
if(MFI80=="Off")event.value="NA";
To:
if(calculatedPDiff=="Off")event.value="NA";
Copy link to clipboard
Copied
Thank you! Thank you! Thank you! Working!