adobe / adobe/aem-core-wcm-components

[Form] Not possible to add additional fields through form action configuration

Open
#79 3 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
795
Forks
775
Avg merge
3d 22h
Merged PRs (30d)
8

Description

When I configure a form action in the Container component, the "addfields.jsp" (or "addfields.html") script is not invoked.

Back in the "old" days, we had in the FormsHelper the startForm(request, response) function, that would at the very end of setting up the form, execute:
` String actionType = (String)properties.get("actionType", "");
if(actionType.length() > 0) {
runAction(actionType, "addfields", formResource, request, response);
}`

This, however, is missing in the new Container component. Therefore, we are unable to add custom fields (or other HTML) to the forms that we use.

Contributor guide

Open the contributing guide

Research direction

Start with the Container component's form action configuration and compare its form setup with the older FormsHelper.startForm(request, response) flow described here. Trace whether addfields.jsp or addfields.html is invoked for the configured action, and consider the work complete when custom fields or other HTML can be added to the rendered form.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.