angular icon indicating copy to clipboard operation
angular copied to clipboard

[Question] Why no hooks except for beforeSubmit even though they are in the docs and in @formio/js?

Open laurens-ritense opened this issue 1 year ago • 6 comments

laurens-ritense avatar Nov 08 '24 11:11 laurens-ritense

Is the question that only the beforeSubmit hook is working in angular? Is beforeNext, beforePrev, customValidation hooks not working in angular?

ZenMasterJacob20011 avatar Nov 27 '24 15:11 ZenMasterJacob20011

I looked at the source code a bit and I don't even see them ever being implemented in the Angular version.

laurens-ritense avatar Nov 29 '24 11:11 laurens-ritense

And my question is why? Shouldn't that functionality also be ported over from formiojs?

laurens-ritense avatar Nov 29 '24 11:11 laurens-ritense

We should have these hooks added to formio in angular. We are happy to accept pull requests that add this behavior. If you need to add some behavior after the submit button is pressed we have some documentation on how to listen for events emitted by the form https://help.form.io/developers/form-development/form-renderer#form-events

ZenMasterJacob20011 avatar Dec 02 '24 14:12 ZenMasterJacob20011

The problem is that that list is not up to date because a lot of those form events are not implemented in the angular library like for example the nextPage event. So are these going to be implemented?

laurens-ritense avatar Dec 02 '24 15:12 laurens-ritense

No, this issue currently is not a priority for are development cycle. However any pull requests that add the form event are welcome

ZenMasterJacob20011 avatar Dec 04 '24 14:12 ZenMasterJacob20011