<?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: Survey123 Report: Page Break for Repeat Feature in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1076325#M35748</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216203"&gt;@Ruth_JiatengXu&lt;/a&gt;&amp;nbsp; - I'm attaching the report template here.&amp;nbsp; I've stripped off the content from the parent feature, but the page #2 is where the repeat questions display.&amp;nbsp; Then the page #3 shows some more questions from the parent feature.&amp;nbsp; From your screenshot, it seemed I needed an additional closing tag.&amp;nbsp; But once I added it, it skipped showing the first repeat question altogether so I resorted back to using white font.&amp;nbsp; Attached template outputs something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AhjungKimSTN_0-1625673097582.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17881i88C2067D47EF29A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AhjungKimSTN_0-1625673097582.png" alt="AhjungKimSTN_0-1625673097582.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 15:54:24 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-07-07T15:54:24Z</dc:date>
    <item>
      <title>Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1074906#M35671</link>
      <description>&lt;P&gt;I am trying to create a report that displays each new repeat feature to a new page.&amp;nbsp; I read some older posts that this is possible by adding index (=repeat count) to the survey.&amp;nbsp; (Link:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/survey123-feature-reporting-insert-page-break/m-p/872656" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-survey123-questions/survey123-feature-reporting-insert-page-break/m-p/872656&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;I did not add the repeat count to the survey and the data collection has been completed already.&amp;nbsp; Is there any way to achieve this (page break for each new repeat feature) without the repeat count?&amp;nbsp; That post is only a few months old but wanted to check if someone figured out new ways to handle it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 19:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1074906#M35671</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-07-01T19:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1075582#M35697</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous User&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the&amp;nbsp;&lt;SPAN&gt;${$feature | getValue: "position"} as the repeat count. Here is the explanation of getValue:"position" in the doc:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;To display the index of a repeat record, use the&amp;nbsp;&lt;SPAN class="usertext"&gt;getValue&lt;/SPAN&gt;&amp;nbsp;expression with the reserved keyword&amp;nbsp;&lt;SPAN class="usertext"&gt;$feature&lt;/SPAN&gt;. This example will produce 1 for the first record in a repeat, 2 for the second, and so on:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;${#defects}&lt;BR /&gt;${$feature | getValue: "position"}&lt;BR /&gt;${/}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;So you can use this expression in your template to insert page break before each repeat except for the first repeat.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ruth_JiatengXu_0-1625471821108.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17715i12BBF73B9B166B5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ruth_JiatengXu_0-1625471821108.png" alt="Ruth_JiatengXu_0-1625471821108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you need, you can also use ${repeat1 | getValue:"count"} to return the number of instance of repeat1.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ruth&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 08:09:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1075582#M35697</guid>
      <dc:creator>Ruth_JiatengXu</dc:creator>
      <dc:date>2021-07-05T08:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1075861#M35723</link>
      <description>&lt;P&gt;Ruth,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked beautifully -&amp;nbsp; I appreciate your help!&amp;nbsp; Somehow the if statement persisted on printing "true" but I wasn't sure how to hide it so I ended up styling the statement in white font. &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 14:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1075861#M35723</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-07-06T14:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1076187#M35736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous User&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If you need help to remove the "true" from your report, you can share your report template here.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ruth&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 06:03:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1076187#M35736</guid>
      <dc:creator>Ruth_JiatengXu</dc:creator>
      <dc:date>2021-07-07T06:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1076325#M35748</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216203"&gt;@Ruth_JiatengXu&lt;/a&gt;&amp;nbsp; - I'm attaching the report template here.&amp;nbsp; I've stripped off the content from the parent feature, but the page #2 is where the repeat questions display.&amp;nbsp; Then the page #3 shows some more questions from the parent feature.&amp;nbsp; From your screenshot, it seemed I needed an additional closing tag.&amp;nbsp; But once I added it, it skipped showing the first repeat question altogether so I resorted back to using white font.&amp;nbsp; Attached template outputs something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AhjungKimSTN_0-1625673097582.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17881i88C2067D47EF29A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AhjungKimSTN_0-1625673097582.png" alt="AhjungKimSTN_0-1625673097582.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 15:54:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1076325#M35748</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-07-07T15:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1076613#M35766</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous User&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified your template, and it should work now.&lt;/P&gt;&lt;P&gt;Few things to notice:&lt;/P&gt;&lt;P&gt;1. The following expression inserts a page break before each repeat, except for the first repeat instance. If you put the table between ${if ...} ${/}, then the table will not be printed for the first repeat instance.&lt;/P&gt;&lt;P&gt;${if ($feature|getValue:”position”)!=1} page break ${/}Observation&lt;/P&gt;&lt;P&gt;2. The ${if ...} ${/} needs the closing tab ${/} to work, and a space is needed between if and the expression.&lt;/P&gt;&lt;P&gt;3. If you only want to output the instance number without the if statement, you can simply use &lt;SPAN&gt;${$feature | getValue: "position"}.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ruth&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 06:09:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1076613#M35766</guid>
      <dc:creator>Ruth_JiatengXu</dc:creator>
      <dc:date>2021-07-08T06:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1076736#M35776</link>
      <description>&lt;P&gt;Thank you for the detailed guidance,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216203"&gt;@Ruth_JiatengXu&lt;/a&gt;&amp;nbsp;!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 14:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1076736#M35776</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-07-08T14:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1432369#M56803</link>
      <description>&lt;P&gt;I'm also having some trouble with this and I'm wondering if anyone here could help out:&lt;/P&gt;&lt;P&gt;I have a report that I want to print out only repeat data with a new page for each entry.&lt;/P&gt;&lt;P&gt;It starts with:${#repeat name}${if ($feature | getValue: “position”)!=1}, then has some MS Word tables with fields from the repeat, and ends with ${/}${/}&lt;/P&gt;&lt;P&gt;I feel like that should be working but I keep getting errors like&amp;nbsp;&lt;SPAN&gt;Error: An error occurred when checking the report template. The tag beginning with "}$repeatEn" is unopened. The start tag &lt;/SPAN&gt;&lt;I&gt;${# UASPreFlightChecklist}&lt;/I&gt;&lt;SPAN&gt; is unclosed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 15:57:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1432369#M56803</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2024-05-10T15:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1569323#M60546</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216203"&gt;@Ruth_JiatengXu&lt;/a&gt;&amp;nbsp;- would there be a way to get the LAST position, without having a repeat count in the form?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 14:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1569323#M60546</guid>
      <dc:creator>JJ_Reyes</dc:creator>
      <dc:date>2024-12-17T14:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1569667#M60560</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/466941"&gt;@JJ_Reyes&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am not sure if I understand your question correctly or not. If you want to show the last repeat instance in the repeat, you don't need to have a repeat count in the form. You can use the following in the repeat template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;${#repeat1 | resultRecordCount:1 | orderByFields:"objectid DESC"}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;${field1InRepeat1}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;${/}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ruth&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 08:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1569667#M60560</guid>
      <dc:creator>Ruth_JiatengXu</dc:creator>
      <dc:date>2024-12-18T08:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1569669#M60561</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am sorry for the late response. The close tag in your template might be the cause of this issue.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ruth_JiatengXu_0-1734511528782.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/122002iF0A3E70785B71E8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ruth_JiatengXu_0-1734511528782.png" alt="Ruth_JiatengXu_0-1734511528782.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ruth&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 08:45:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1569669#M60561</guid>
      <dc:creator>Ruth_JiatengXu</dc:creator>
      <dc:date>2024-12-18T08:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1569718#M60564</link>
      <description>&lt;P&gt;Ah sorry&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/216203"&gt;@Ruth_JiatengXu&lt;/a&gt;&amp;nbsp; - I wasn't clear. It's more like trying to find the last repeat so a final separator doesn't display. If the code was something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;${#repeat1}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;${field1InRepeat1} &amp;lt;page break&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;${/}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm looking to identify the last repeat so it does not have an extra page break at the end of the document.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 13:41:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1569718#M60564</guid>
      <dc:creator>JJ_Reyes</dc:creator>
      <dc:date>2024-12-18T13:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1570132#M60586</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/466941"&gt;@JJ_Reyes&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for the information, you could use the following syntax.&lt;/P&gt;&lt;P&gt;${#repeat1}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;${field1InRepeat1}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;${if ($feature| getValue:"position")!=( r1 | where:"$inputParams !important" | stats:"count,objectid")}&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;page break&amp;gt;${/}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;${/}&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add the page break when the position is not equal to repeat instance count.&lt;/LI&gt;&lt;LI&gt;Use ( r1 | where:"$inputParams !important" | stats:"count,objectid") to get repeat count inside ${#repeat1}${/}.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ruth&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 12:20:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1570132#M60586</guid>
      <dc:creator>Ruth_JiatengXu</dc:creator>
      <dc:date>2024-12-19T12:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Report: Page Break for Repeat Feature</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1570185#M60589</link>
      <description>&lt;P&gt;This works great - thanks! I was able to add my own parameters instead of $inputParams as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2024 14:57:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-report-page-break-for-repeat-feature/m-p/1570185#M60589</guid>
      <dc:creator>JJ_Reyes</dc:creator>
      <dc:date>2024-12-19T14:57:35Z</dc:date>
    </item>
  </channel>
</rss>

