onRun: function (){
AutoForm.hooks({
itemPushForm:{
onSuccess: function (){
console.log('success')
}
}
});
}
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.