Help needed with conditional fields and dropdown value storage issue in AEM component multifield
Hi Adobe Community,
I’m working on an AEM component that includes:
A dropdown with 8 options.
7 fields in total, out of which 4 fields are common for all 8 dropdown options.
For 7 of the dropdown options, there is an additional common field (let’s call it Field A).
For the 8th dropdown option, I want to hide Field A (the extra field common to the other 7 options) and instead show 2 different extra fields that should be hidden for the other 7 options.
Additionally, inside this component, I have a multifield that follows the same conditional logic as described above for its fields and dropdown options.
My questions are:
How can I implement this conditional showing/hiding of fields based on the dropdown selection within the component and multifield?
Why are the dropdown values not storing correctly in CRXDE? After submitting the dialog and reopening it, the values seem to change unexpectedly. What might be causing this issue?
I would appreciate any guidance or best practices for setting up such conditional fields and troubleshooting the value storage problem.
Thanks in advance