adobe / adobe/aem-core-forms-components

Rule editor sum function doesn't accept Panels

Open
#1,123 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
36
Forks
62
Avg merge
1d 6h
Merged PRs (30d)
8

Description

### Expected Behaviour
To add a Repeatable Panel into a Sum function (OOTB) to perform summatory operations between same fields in a repetitive panel.
### Actual Behaviour
The Repeatable Panel cannot be added to the input collection in Sum function.
![image](https://github.com/adobe/aem-core-forms-components/assets/163349374/7c34c25a-6227-499f-b60c-61e51515ae86)

### Reproduce Scenario (including but not limited to)
- Create a Panel with repeteable sections
- Add one numeric field field_a
- Add a button to add instances of the panel
- Add a numeric field outside the panel field_b
- Create a rule in the field_a with Set value of and assign the value to a Function Output and select Sum.
- Try to include the repeteable panel into the function input parameter, you can't

#### Platform and Version
AEM as a Cloud Service - Adaptive Forms
pom.xml versions:
2.24.2
3.0.0
3.0.0

#### AEM Forms Version
2023.10.25.00-231200

#### AEM Version (mention the exact version in case of cloud SDK)
2023.12.14697.20231215T125030Z-231200

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in AEM Forms with a repeatable panel, numeric fields, and the Sum function as described. Trace the rule editor's Sum function input handling; done means a repeatable panel can be selected as an input collection and performs the expected summation across its instances.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.