Hi,
What seems to happen when you remove a form object that has code that is currently executing is that it can't find the next line. You might want to put all your code in the script object.
so in the click event you have;
SOremove.fxremove(this);
Then your script object will start
function fxremove(button) {
button.resolveNode('fifteenSubform._CorrectiveActionWrapper').removeInstance(button.parent.index);
if (xfa.host.version < 8) {
xfa.form.recalculate(1);
}
console.println("The SOremove.fxremove fired");
Regards
Bruce