Repeater: How to set IDs for repeated fields? How to make e-mail template?

Hey guys! I’m using a Repeater to create any number of “Bezugspersonen” on this form:

I set up IDs for all the fields in this block. When I click the “+” icon to create a new block, the fields inside all have the same IDs as the first one.

Steps:

  1. Click “+” to create a new “Bezugsperson”
  2. Check data-custom-id attributes on fields

image

I’m struggling to figure out how to make an e-mail template out of field IDs that aren’t unique.

Ideally, there’d need to be some mechanism to dynamically create IDs e.g. like this:

  • stammdaten-bezug1-vorname
  • stammdaten-bezug2-vorname
  • stammdaten-bezug3-vorname

Thoughts?