Yes, it requires a script. The issue is about organizing data/code. Each dropdown selection changes the values used by the radio buttons, so it is slightly more complicated than simply adding up values. It is better to change the calculation script.
Here's an example, This is not the complete or correct script. It just shows how it need to be setup. Notice that the intial calculation is not complete (no field name) and not all conditions are shown in the switch statment.
// First do the regular calculation
event.vaue = this.getField("...") + this.getField("...");
// Now add dependent value from radio button
var cPixValue = this.getField("pixelamount").value;
var cRadValue = this.getFiel("Group1").value;
switch(cPicValue)
{
case "1024":
switch(cRadValue)
{
case "A":
event.value += 10;
break;
case "B":
event.value += 20;
break;
}
break;
case "2048":
break;
case "4096":
break;
}
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often