Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Creating multifield from Adaptive form textbox

Avatar

Level 1

Hi,

I have a requirement to have a textbox in which the user can enter more than one value. 

Example: Something like "Hobbies" where the user can enter more than one hobby in the text box. If the user wants to add a new hobby, then he//she should be able to click on a + sign to get another text box just below the current one (something like a multifield textfield in dialogs).

Is it possible using Adaptive forms? Also, how will the values be stored in the repository?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee

Can you please try using a repeatable panel with max occurrences set to some high value. That panel should contain your field. 

If you use accordion layout for the panel, you would get '+'  button  by default.

So the node structure would be a panel having one children.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Can you please try using a repeatable panel with max occurrences set to some high value. That panel should contain your field. 

If you use accordion layout for the panel, you would get '+'  button  by default.

So the node structure would be a panel having one children.