Extend an existing form action | Community
Skip to main content
gabrielav200407
Level 2
December 11, 2015
Solved

Extend an existing form action

  • December 11, 2015
  • 2 replies
  • 1042 views

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.
Best answer by smacdonald2008

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
December 14, 2015

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. 

gabrielav200407
Level 2
December 15, 2015

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.