On success script subform

On success script subform

Hello, 

anyone could explain me why On success script works only if I edit a form directly, but noi if I edit record in parent form that cointain subform.

Thanks