Add Icon to Add-Event in repeat group

Is there a way to add an icon to the button that triggers the add-event to add a row in a repeatable group? I found how to change the label but was not able to select an icon like is possible in other button-edit areas of A12.

Hi @sarah-fresh-flame,

It’s not possible to add an icon to the Repeat Group Add button by modeling.
because it’s not as fully customized as the other buttons (where we can assign the name, events, and icons).

And I think it’s not even doable by customizing the repeat component on the FormModelMap (we can only enable or disable it from there same as we can do on the SME).

Enabling the add button triggers the AddButton component which adds a new row and it’s not customizable.

I think it’s possible to create a new AddButton component with an Icon and render it based on the add button enablement on the repeat component.

I think it might be possible to add the icon via Customization using the WidgetMap of the Form Engine.

There you need to add your custom button component and find the respective repeat add button.

The tricky part is identifying the button. Currently, the only possible solution (in my opinion) is to check the id of the button. It has to end with “-add-button-”

Alternatively, you could also check the label (“Add” for English). However, the label could be different from the A12 default if you use a customized localization approach in your project.