<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Default Values for RepeatedFieldGroup in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Default-Values-for-RepeatedFieldGroup/m-p/1165043#M43286</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/746708"&gt;@tricialeach&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're right—setting default values for RepeatedFieldGroup in CMS React doesn't always reflect properly in the page editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make it work, try initializing the field values explicitly in the &lt;STRONG&gt;schema’s defaultValue or initialValue&lt;/STRONG&gt;, depending on your CMS setup. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;defaultValue&lt;/SPAN&gt;: [ { &lt;SPAN class=""&gt;title&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"Default Title"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;description&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"Default Description"&lt;/SPAN&gt; } ]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Also, ensure the component handling the RepeatedFieldGroup is set up to recognize and render the initial values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It’s definitely worth updating the docs for clarity—hopefully the team can address that soon!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you want a code example tailored to your setup.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jun 2025 07:18:24 GMT</pubDate>
    <dc:creator>raohenry</dc:creator>
    <dc:date>2025-06-16T07:18:24Z</dc:date>
    <item>
      <title>Default Values for RepeatedFieldGroup</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Default-Values-for-RepeatedFieldGroup/m-p/1163518#M43257</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can we pass in default values to RepeatedFieldGroups? I tried this example from the docs in CMS React, and the default values are not reflected in the page editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be possible to get an answer to this, and the docs updated?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/guides/cms/react/modules#repeated-field-groups" target="_blank"&gt;https://developers.hubspot.com/docs/guides/cms/react/modules#repeated-field-groups&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 16:30:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Default-Values-for-RepeatedFieldGroup/m-p/1163518#M43257</guid>
      <dc:creator>tricialeach</dc:creator>
      <dc:date>2025-06-11T16:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values for RepeatedFieldGroup</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Default-Values-for-RepeatedFieldGroup/m-p/1163558#M43260</link>
      <description>&lt;P&gt;For some additional context, I am only seeing this bug when I used a&amp;nbsp;&lt;SPAN&gt;RepeatedFieldGroup that is nested inside a Field Group. This is the result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-06-11 at 10.23.31 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/148261i55640AC81C5C6E52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-06-11 at 10.23.31 AM.png" alt="Screenshot 2025-06-11 at 10.23.31 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-06-11 at 10.23.24 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/148260i51ED22C25291AD46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-06-11 at 10.23.24 AM.png" alt="Screenshot 2025-06-11 at 10.23.24 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-06-11 at 10.23.18 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/148259i10645C58863F6F55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-06-11 at 10.23.18 AM.png" alt="Screenshot 2025-06-11 at 10.23.18 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 17:44:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Default-Values-for-RepeatedFieldGroup/m-p/1163558#M43260</guid>
      <dc:creator>tricialeach</dc:creator>
      <dc:date>2025-06-11T17:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values for RepeatedFieldGroup</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Default-Values-for-RepeatedFieldGroup/m-p/1165043#M43286</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/746708"&gt;@tricialeach&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're right—setting default values for RepeatedFieldGroup in CMS React doesn't always reflect properly in the page editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make it work, try initializing the field values explicitly in the &lt;STRONG&gt;schema’s defaultValue or initialValue&lt;/STRONG&gt;, depending on your CMS setup. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;defaultValue&lt;/SPAN&gt;: [ { &lt;SPAN class=""&gt;title&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"Default Title"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;description&lt;/SPAN&gt;: &lt;SPAN class=""&gt;"Default Description"&lt;/SPAN&gt; } ]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Also, ensure the component handling the RepeatedFieldGroup is set up to recognize and render the initial values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It’s definitely worth updating the docs for clarity—hopefully the team can address that soon!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you want a code example tailored to your setup.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 07:18:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Default-Values-for-RepeatedFieldGroup/m-p/1165043#M43286</guid>
      <dc:creator>raohenry</dc:creator>
      <dc:date>2025-06-16T07:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Default Values for RepeatedFieldGroup</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Default-Values-for-RepeatedFieldGroup/m-p/1165523#M43292</link>
      <description>&lt;P&gt;Thanks for very for your response! I actually worked out that passing a default value &lt;EM&gt;almost&lt;/EM&gt; got me there. The default values now show up in the page editor, but they don't actually show up on the page, unless I manually go into the fields to update them. Do you see this behavior too?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2025 00:54:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Default-Values-for-RepeatedFieldGroup/m-p/1165523#M43292</guid>
      <dc:creator>tricialeach</dc:creator>
      <dc:date>2025-06-17T00:54:49Z</dc:date>
    </item>
  </channel>
</rss>

