How to set dynamic ID to components


I understood that to set the DOM or HTML id of a component, I have to use the “Anchor” property. However, I am wondering if there is a way to set that “Anchor” value dynamically in Codeless logic.

My use case is I have a dynamic list and I need to set a unique ID to each resulting child component.

Thank you for telling me if and how that is possible.

Hello @Nicolas_REMY.

We temporary offer you use this workaround. But your proposal is make sense, and we have created a ticket BKNDLSS-28173 to add this possibility.

Below i show logic for Dynamic Item, where Block Item Data is object from Dynamic List with signature:
{id: <some id>}


Please tell me, if something still not clear.

Regards, Dima.

1 Like