Added isSubForm() method.
Prevented subforms submission events from propagating up into outer forms and causing infinite loops.