Hooks not firing on update-pushArray form


#1
onRun: function (){

   AutoForm.hooks({
      itemPushForm:{
         onSuccess: function (){
             console.log('success')
         }
       }
   });
}

#2

I think i figured it out -

I moved the AutoForm.hooks object to the action hook instead of the onRun, and it seems to be working.

but why? onRun the DOM should be available.