Have you tried to write a script to only turn a single button to one of the valid values?
Once you can adjust one, then it is just a matter of making the field name a variable and changing the field name in a controlled manner like reading the field names from an array and setting the value of that radio button or check box to the value of the widget you want selected or "off" for no selection.
You want to set the 'value' property of the exclusionary group and not the 'setExportValues' of a widget within the exclusionary group.
You use the 'setExportValues' when creating the radio buttons or check boxes and setting the export value for each widget within the group.
Sorry for the misunderstanding. That is basically what I am after. I sent the section of code where I am trying to set one of the check boxes. Then I will simply run a loop to set them all. What I can't figure out is how to access the widget to set it to 'Yes' and get the check mark to show up. I forgot about the value and changed my script but I think I am still not accessing the widget (first radiobutton in the set)
var setOn = getField('Radio1');
setOn.value = 'On';
You do not need to get to the widget. Each widget in a group needs to have a unique export value. Then the value for the for the group is the value of the widget or it is the string "Off" if no item is set. Setting the value of the group to "off" unchecks all the radio buttons or check boxes in the group. Setting the value of the group to the export value of one of the buttons in the group checks that button and turns all the other buttons in the group off.
Thanks so much. I was over thinking this and it now works great!