Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Extend an existing form action

Avatar

Level 3

Hi, I have implemented a custom action and now I want to extend that action and add extra functionality. However, setting sling:resourceSuperType on the second custom action doesn't seem to have any effect, meaning that the scripts (e.g. init.jsp, cleanup.jsp) are not inherited. Is inheritance not supported when it comes to actions?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Are you using Adaptive forms or AEM 5.6 forms. If 5.6 - see this section ""DEVELOPING YOUR OWN FORM ACTIONS here: 

https://docs.adobe.com/docs/en/cq/5-6-1/developing/developing-forms.html

Instead of trying to inherit at the sling level - you may be better off defining multiple actions by following this documentation. 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Are you using Adaptive forms or AEM 5.6 forms. If 5.6 - see this section ""DEVELOPING YOUR OWN FORM ACTIONS here: 

https://docs.adobe.com/docs/en/cq/5-6-1/developing/developing-forms.html

Instead of trying to inherit at the sling level - you may be better off defining multiple actions by following this documentation. 

Avatar

Level 3

I'm using AEM 5.6 forms. Yeah, that's the link I used for developing the custom action. But I have one action that is very similar to the other one I want to develop so that's why I was wondering if there's a way to extend at Sling level. I suppose not.