Hi,
I just trying to set the email subject using MailFormDataBehavior in Enterprise Forms programatically depending on HippoCMS locale.
I have a custom form class extending AutoDetectFormComponent and I’m unable to override getSubject method from MailFormDataBehavior. Other methods I’ve seen are read-only and I can just call the getters methods, not set the value.
I tried creating a new plugable form behavior based on MailFormDataBehavior which is a identical copy but in another package. Adding this new custom behavior I could change the getSubject method.
CustomMailFormDataBehavior extends MailFormDataBehavior
But the new class is not detected by HippoCMS, I attach screenshots of my configuration:
New custom behavior
Set the new behavior to the form component:
Hippo CMS can’t load the class:
Could you help with any clues?
Regards,
Aitor