# Unique default content per each default object instantiated from a repeatable group module.

**URL:** <https://community.hubspot.com/t/unique-default-content-per-each-default-object-instantiated-from-a-repeatable-group-module/14723>\
**Category:** CMS Development\
**Created:** [June 10, 2019, 9:06pm UTC](https://community.hubspot.com/t/unique-default-content-per-each-default-object-instantiated-from-a-repeatable-group-module/14723 "2019-06-10T21:06:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jshockey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jshockey/32/101739_2.png) [@jshockey](https://community.hubspot.com/u/jshockey)\
**Post date:** [June 10, 2019, 9:06pm UTC](https://community.hubspot.com/t/unique-default-content-per-each-default-object-instantiated-from-a-repeatable-group-module/14723/1 "2019-06-10T21:06:20Z")

</div>

Hi,

I have a module with a repetable group. I set the default object count to 9 in the repeater options. I would like to give each of the 9 objects their own initial default content. Currently, each object pulls in the default content from the fields default content within the group. See attached photos. How can I give the 9 default instances their own default content?

 ![current-state.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/1/d128efb5e494dbac9a8fd084446d06edcff4df5f.png)  
Current values (pulled in from default field content)  
 ![what-i-want.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/d/d9972ea671759963eed3e7d421b69d3687b7bbee.png)  
Values I would like to be default for each of the 9 default objects

Best,

John

---

<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:** [June 11, 2019, 6:00am UTC](https://community.hubspot.com/t/unique-default-content-per-each-default-object-instantiated-from-a-repeatable-group-module/14723/2 "2019-06-11T06:00:30Z")

</div>

Hi @jshockey ,

While it is not possible to give items in a repeater field their own default content, you can do this on the template level. Once you add the module to a template you are able to make edits to the module, and the content you add/change in the module will stick to the template, which will transfer over to any pages created with that template.

---

<div class="post-metadata">

**Author:** ![jshockey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jshockey/32/101739_2.png) [@jshockey](https://community.hubspot.com/u/jshockey)\
**Post date:** [June 11, 2019, 6:00pm UTC](https://community.hubspot.com/t/unique-default-content-per-each-default-object-instantiated-from-a-repeatable-group-module/14723/3 "2019-06-11T18:00:47Z")

</div>

@Jsum Thanks for the response!

---

<div class="post-metadata">

**Author:** ![ACBlack](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/acblack/32/30191_2.png) [@ACBlack](https://community.hubspot.com/u/ACBlack)\
**Post date:** [April 22, 2021, 11:48am UTC](https://community.hubspot.com/t/unique-default-content-per-each-default-object-instantiated-from-a-repeatable-group-module/14723/4 "2021-04-22T11:48:14Z")

</div>

And how do you do this? can i ask for an example pice of code?

---

<div class="post-metadata">

**Author:** ![tjoyce](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tjoyce/32/88832_2.png) [@tjoyce](https://community.hubspot.com/u/tjoyce)\
**Post date:** [May 11, 2021, 1:09pm UTC](https://community.hubspot.com/t/unique-default-content-per-each-default-object-instantiated-from-a-repeatable-group-module/14723/5 "2021-05-11T13:09:26Z")

</div>

You can do this through the CLI, if you edit the module/fields.json file  
locate the group you are trying to target

```lia-code-sample
{"tab" : "CONTENT",
 "expanded" : false,
 "type" : "group",
 "default" : {"feature_title": "Resource Database": "stat_number": "9.3"}
}

```

and convert the “default” object to an array with []  
and add objects to the array like so

```lia-code-sample
{"tab" : "CONTENT",
 "expanded" : false,
 "type" : "group",
 "default" : [
 {"feature_title": "Resource Database": "stat_number": "9.3"},
 {"feature_title": "Resource Allocation": "stat_number": "1.2"},
 {"feature_title": "Workload Capacity": "stat_number": "8.0"},
 {"feature_title": "Time Tracking": "stat_number": "6.8"}
 ]
}

```

Be sure to refresh the page editor before adding a new instance of this module, and then you should see 4 repeater objects if you add a new instance of the module to the page.

---

<div class="post-metadata">

**Author:** ![lindahouben](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lindahouben/32/82677_2.png) [@lindahouben](https://community.hubspot.com/u/lindahouben)\
**Post date:** [December 29, 2023, 8:43am UTC](https://community.hubspot.com/t/unique-default-content-per-each-default-object-instantiated-from-a-repeatable-group-module/14723/6 "2023-12-29T08:43:00Z")

</div>

Hi @tjoyce, i’m having the same issue that I would like to give unique values to repeated items. For me I would like to change a colour for each of the items. Is that also possible with JSON? And what of the code you gave do I need to adjust?
