I’m currently developing an enterprise form with a custom, pluggable behavior. It is an implementation of
OnValidationSuccessBehavior. The form behaves as expected when mapped to a standalone page via a sitemap item, but if I inject said form into another document using the channel editor, the custom behavior is not called anymore.
I have had a look into the
AutoDetectFormComponent, which is used in this scenario, and I have noticed that it has a hard-coded list of behaviors that are then assigned to the form if enabled.
Do you have any recommendations or suggestions for what I might try in order to be able to add a form using the channel editor and keeping all of its behaviors?