CustomAction Type in AEM Core Form Container Component

Avatar

Avatar

rahuld77778584

Avatar

rahuld77778584

rahuld77778584

14-01-2019

Is there a way to add custom Action Type in new AEM Core Form Container Component? We get 4 action types OOTB.  I need to add my custom servlet path in

Action Type.

1667348_pastedImage_0.png

Form Container Github Link : aem-core-wcm-components/content/src/content/jcr_root/apps/core/wcm/components/form/container/v2/cont...

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

14-01-2019

Have you tried creating a standard form action for this?

Avatar

Avatar

Gaurav-Behl

MVP

Avatar

Gaurav-Behl

MVP

Gaurav-Behl
MVP

14-01-2019

As Scott mentioned, provide action in your html code. It would work

Check the Container model for reference -

aem-core-wcm-components/Container.java at master · adobe/aem-core-wcm-components · GitHub

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

14-01-2019

Another option you have is to use Form components under general where you can define a custom action as discussed here --

Adobe Experience Manager Help | Creating a custom action for an Adobe Experience Manager Form compon...

THis works fine on 6.4 -- just tested!

Avatar

Avatar

rahuld77778584

Avatar

rahuld77778584

rahuld77778584

14-01-2019

Thanks!

I will look into it.

Avatar

Avatar

Shalini_Gupta

Avatar

Shalini_Gupta

Shalini_Gupta

25-04-2019

Did the solution worked for you?
For adding custom action type in the node, you would need to add cq:dialog to the action resource. Create as given here Developing Forms (Classic UI) .
I made the custom action, but I am not getting the data in post.POST.jsp on submit.

Avatar

Avatar

sharathn8223803

Avatar

sharathn8223803

sharathn8223803

31-07-2019

Check this /libs/commerce/components/actions/submitorder. You  need create sling:folder similar to that.

Avatar

Avatar

srikanthg212933

Avatar

srikanthg212933

srikanthg212933

06-01-2020

Hi @rahuld77778584 Did you able to achieve the above requirement with core components ? it would be great if you can share the workaround that you have used.