Skip to main content
gabrielav200407
Level 2
Dec 11, 2015 8:44 AM UTC
Solved

Extend an existing form action

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Dec 14, 2015 3:34 PM UTC

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. 

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
Dec 14, 2015 3:34 PM UTC

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. 

Translate
gabrielav200407
Level 2
Dec 15, 2015 7:39 AM UTC

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.

Translate