<?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: Web Form Repeats: Character Counts and Field Lengths in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1188053#M43518</link>
    <description>&lt;P&gt;Glad you've brought this to my attention, as I was hunting for ways to display character count. Turns out I am editing an existing feature class in my survey and that explains why it won't display.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2022 20:48:41 GMT</pubDate>
    <dc:creator>SFM_TravisBott</dc:creator>
    <dc:date>2022-06-29T20:48:41Z</dc:date>
    <item>
      <title>Web Form Repeats: Character Counts and Field Lengths</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/871482#M28275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I love that character counts automatically display in text fields now, but I noticed that in web forms, they only do so &lt;EM&gt;outside&lt;/EM&gt; of a repeat. For web form text fields in a repeat, no character counts are displayed and--more importantly--field length isn't enforced. A user can enter in much more than the allowed length with no indication that it's incorrect. When submitting the form, a generic error appears stating &lt;EM&gt;"Failed to Submit: Operation rolled back. String or binary data would be truncated. The statement has been terminated"&lt;/EM&gt; without indicating which question in particular caused the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I found some discussion of the above error in different contexts, I couldn't find anything on this particular situation when I searched GeoNet, so I wanted to check if it's a known issue, and if it's being worked on at all. It looks like it works just fine in the field app, so that's good at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fortunately, in the meantime for anyone else who might run into this, workarounds are simple enough using &lt;STRONG&gt;string-length()&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For &lt;A href="https://community.esri.com/thread/195691"&gt;Display remaining character count&lt;/A&gt;: use &lt;STRONG&gt;concat(string-length(${example}), ' of 500')&lt;/STRONG&gt; in the &lt;SPAN style="text-decoration: underline;"&gt;calculation&lt;/SPAN&gt; of a note field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For helping warn users who still managed to go over the limit, just use another note field with &lt;STRONG&gt;string-length(${example})&amp;gt;500&lt;/STRONG&gt; in the &lt;SPAN style="text-decoration: underline;"&gt;relevant&lt;/SPAN&gt; column. This ought to give a user a heads up before they try submitting the survey.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2019 20:54:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/871482#M28275</guid>
      <dc:creator>NickDierks1</dc:creator>
      <dc:date>2019-03-26T20:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Web Form Repeats: Character Counts and Field Lengths</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/871483#M28276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can replicate this issue exactly as you described. I’ve logged an issue for this and added your post to the comments, but unfortunately can't give you a timeline for a fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another suggested workaround to enforce a character limit and give a meaningful message when exceeded is to use a constraint and constraint message on your text question within the repeat. Here is an example of what that might look like in Connect and in the Web Form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/440619_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" height="514" src="https://community.esri.com/legacyfs/online/440620_pastedImage_2.png" width="354" /&gt;&lt;/P&gt;&lt;P&gt;This will ensure the UI&amp;nbsp;flags the question when the limit is exceeded (just as it does for text questions outside the repeat). You'll notice that the default message (&lt;EM&gt;"Please &lt;STRONG&gt;input&lt;/STRONG&gt; (field_length) characters at most"&lt;/EM&gt;) is used outside of the repeat based on the actual field length alone. While my slightly different message (&lt;EM&gt;"Please &lt;STRONG&gt;enter &lt;/STRONG&gt;...."&lt;/EM&gt;) needs to be manually added to the constraint message field in Connect as shown above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brett&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 00:57:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/871483#M28276</guid>
      <dc:creator>BrettStokes</dc:creator>
      <dc:date>2019-03-28T00:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Web Form Repeats: Character Counts and Field Lengths</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/871484#M28277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response--good to know it'll get looked into. And that's definitely a much simpler workaround than my note method--can't believe I spaced and forgot about using a constraint!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 14:30:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/871484#M28277</guid>
      <dc:creator>NickDierks1</dc:creator>
      <dc:date>2019-03-28T14:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Web Form Repeats: Character Counts and Field Lengths</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1184499#M43347</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4925"&gt;@BrettStokes&lt;/a&gt;&amp;nbsp; - this post is from over 3 years ago and I'm finding the same issue today. Could you direct me to the bug/idea posting or provide some details on what's going on? This seems like a basic functionality that I wasn't aware was missing until I had users emailing me wondering what was going on. Is there a simpler fix nowadays?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 22:10:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1184499#M43347</guid>
      <dc:creator>wayfaringrob</dc:creator>
      <dc:date>2022-06-20T22:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Web Form Repeats: Character Counts and Field Lengths</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1186987#M43463</link>
      <description>&lt;P&gt;I have some users reporting that the warnings do appear when creating a new feature in the survey, but not when editing an existing one via a link (using the globalid URL parameter).&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 20:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1186987#M43463</guid>
      <dc:creator>wayfaringrob</dc:creator>
      <dc:date>2022-06-27T20:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Web Form Repeats: Character Counts and Field Lengths</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1186992#M43464</link>
      <description>&lt;P&gt;Sure enough, here is a field in a new survey entry:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rburkebsrc_0-1656360365961.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/44548i962FDE2CE8BAF291/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rburkebsrc_0-1656360365961.png" alt="rburkebsrc_0-1656360365961.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And an edited entry:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rburkebsrc_1-1656360438621.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/44549iE4287CFCE87F4B3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rburkebsrc_1-1656360438621.png" alt="rburkebsrc_1-1656360438621.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The counter is missing from the latter.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 20:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1186992#M43464</guid>
      <dc:creator>wayfaringrob</dc:creator>
      <dc:date>2022-06-27T20:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Web Form Repeats: Character Counts and Field Lengths</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1188053#M43518</link>
      <description>&lt;P&gt;Glad you've brought this to my attention, as I was hunting for ways to display character count. Turns out I am editing an existing feature class in my survey and that explains why it won't display.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 20:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1188053#M43518</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2022-06-29T20:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Web Form Repeats: Character Counts and Field Lengths</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1224594#M45506</link>
      <description>&lt;P&gt;Is there any hope to fix this issu, to be able to present the remaining&amp;nbsp;&lt;SPAN&gt;characters count also during the entry editing?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 07:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1224594#M45506</guid>
      <dc:creator>LiisiPark</dc:creator>
      <dc:date>2022-10-24T07:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Web Form Repeats: Character Counts and Field Lengths</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1224715#M45517</link>
      <description>&lt;P&gt;Would also appreciate an update &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4925"&gt;@BrettStokes&lt;/a&gt;&amp;nbsp; or anyone from Esri.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 15:03:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1224715#M45517</guid>
      <dc:creator>wayfaringrob</dc:creator>
      <dc:date>2022-10-24T15:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Web Form Repeats: Character Counts and Field Lengths</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1260880#M47610</link>
      <description>&lt;P&gt;I also have the issue of character counts not showing inside a repeat text question. The string_length constraint work-around is a good band-aid solution but would appreciate an update from ESRI about a permanent fix.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2023 14:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/web-form-repeats-character-counts-and-field/m-p/1260880#M47610</guid>
      <dc:creator>mwartman_grey</dc:creator>
      <dc:date>2023-02-23T14:23:20Z</dc:date>
    </item>
  </channel>
</rss>

