[Solved] How to attach counter variable on field in twig file?


If you’re simply looking for its index in the loop:

<textarea name="description{{ loop.index }}">

Here’s the docs.

1

solved How to attach counter variable on field in twig file?