# Issue with repeater field

**URL:** <https://community.hubspot.com/t/issue-with-repeater-field/3406>\
**Category:** CMS Development\
**Created:** [September 22, 2017, 1:56pm UTC](https://community.hubspot.com/t/issue-with-repeater-field/3406 "2017-09-22T13:56:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [September 25, 2017, 8:05am UTC](https://community.hubspot.com/t/issue-with-repeater-field/3406/2 "2017-09-25T08:05:42Z")

</div>

@mateomm22

I have a nifty trick for this. You will need to use block syntax for the modules inside of the loop (find it here in the [docs](http://designers.hubspot.com/docs/hubl/hubl-module-syntax-and-parameters)).

```auto
{% widget_block rich_text "my_rich_text_module" overrideable=True, unique_in_loop=True %}
 {% widget_attribute "label" %}
 My rich-text module {{ loop.index }}
 {% end_widget_block %}
 {% widget_attribute "html" %}
 <h2>New Module</h2>
 <p>Add content here.</p>
 {% end_widget_attribute %}
{% end_widget_block %}

```

Notice 2 things:

1. unique\_in\_loop=true - makes the system name for the module unique

2. widget\_attribute label - I broke the label loose using block syntax and set the loop index at the end to make it unique.  
You should know that the ordering of modules using this method is utter chaos on the editor page. Instead of it display:

text 1

image 1

text 2

image 2

text 3

image 3

it will be more like:

image 3

text 1

text 2

image 1

text 3

image 2

It’s a bit of a mess. Makes for some pretty decent customization though.

---

_[View the full topic](https://community.hubspot.com/t/issue-with-repeater-field/3406)._
