Avatar

Level 4

As usual Paul had the answer, and in my case it was a simple newbie mistake-a single equals sign assigns a value, a double equals sign compares the value.  Since I wanted to compare but was assigning, stuff messed up.  Here's the script now

if (Subform_Name.instanceManager.count=='1')

          Radio_Button_Group.rawValue='2'; // 2 is the value associated with the "no" button

_Subform_Name.removeInstance(this.parent.parent.index);

xfa.form.recalculate(1);