Aem 6.3 adaptive forms

Avatar

Avatar
Validate 1
Level 1
hari_purushotha
Level 1

Likes

0 likes

Total Posts

16 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
hari_purushotha
Level 1

Likes

0 likes

Total Posts

16 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
hari_purushotha
Level 1

22-05-2018

The usecase is one adaptive form contains two submit buttons with different Element names and in post.POST.jsp the business logic varies for each submit button.how to achieve it

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
James_R_Green
Level 5

23-05-2018

Ah ok. FYI for production that isn't recommended

https://helpx.adobe.com/aem-forms/6/configuring-submit-actions.html

"In a production environment, it is recommended not to store submitted form data in AEM repository. Submit actions such as Store Content, Store PDF, and Forms Portal store form data in AEM repository. These submit actions are meant only for demonstration purposes. Instead in a production environment, you must write a custom submit action that stores forms data in a more secure storage like your enterprise database. For more information, see Writing custom Submit action for adaptive forms."

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 1
hari_purushotha
Level 1

Likes

0 likes

Total Posts

16 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
hari_purushotha
Level 1

Likes

0 likes

Total Posts

16 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
hari_purushotha
Level 1

23-05-2018

Hi James,

Thanks for the reply...we are submitting to repository not  to rest endpoint.

Avatar

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile

Avatar
Boost 50
Level 5
James_R_Green
Level 5

Likes

52 likes

Total Posts

191 posts

Correct reply

47 solutions
Top badges earned
Boost 50
Validate 25
Validate 10
Validate 1
Boost 5
View profile
James_R_Green
Level 5

23-05-2018

Are submitting to a rest endpoint? If so, you could set a hidden field called say 'action' to a different value for each button before it submits, then when you get into your submit code just check the value of 'action' and proceed accordingly.