<?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: S123 web form: pre-fill multi-line textbox with setQuestionValue OR open=web in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1107435#M38034</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/443705"&gt;@Dawn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you share a copy of setQuestionValue script? It does not have to be a whole copy, as long as it contains basic lines to reproduce your issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 09:45:14 GMT</pubDate>
    <dc:creator>alison_gou</dc:creator>
    <dc:date>2021-10-14T09:45:14Z</dc:date>
    <item>
      <title>S123 web form: pre-fill multi-line textbox with setQuestionValue OR open=web</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1103848#M37740</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;U&gt;Survey123Webform +&amp;nbsp;setQuestionValue with multiline&lt;/U&gt;&lt;/P&gt;&lt;P&gt;We have a survey published from S123Connect with a multi-line textbox. The survey is opened in a Survey123Webform using &lt;U&gt;setQuestionValue &lt;/U&gt;and the contents of the textbox are prefilled with text pulled from other data sources.&amp;nbsp;&lt;/P&gt;&lt;P&gt;survey123WebForm.setQuestionValue({&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comments: encodeURIComponent(&lt;FONT color="#FF0000"&gt;this.comments&lt;/FONT&gt;),&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;where&lt;FONT color="#FF0000"&gt; this.comments&lt;/FONT&gt; contains:&lt;/P&gt;&lt;P&gt;Test Entry 2\nB7 reports fire completely out.\nb50 reports fire out\nB15 reports that the fire is out.\nB10 reports the fire is out&lt;/P&gt;&lt;P&gt;&amp;nbsp;The earlier version published via S123C 3.9 definitely used to work as expected (multi-line contents displayed without additional encoding values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;displayed correctly as:&lt;/P&gt;&lt;P&gt;Test Entry 2&lt;BR /&gt;B7 reports fire completely out.&lt;BR /&gt;b50 reports fire out&lt;BR /&gt;B15 reports that the fire is out.&lt;BR /&gt;B10 reports the fire is out&lt;/P&gt;&lt;P&gt;Now the same function encodeURIComponent&lt;FONT color="#FF0000"&gt;(this.comments)&lt;/FONT&gt; when passing the data to the S123 textbox displays as:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dawn_0-1633005028090.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24238i693008CD23FEBB05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dawn_0-1633005028090.png" alt="Dawn_0-1633005028090.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am not sure when this behaviour changed as I have not looked at this specific survey for a while. Is there a workaround to get the linefeeds back into the displayed text?&lt;/P&gt;&lt;P&gt;If the multiline textbox is updated and the data is saved into the underlying feature service and the survey is re-opened in edit mode using globalid as a parameter, the lines are displayed correctly across multiple lines&lt;/P&gt;&lt;P&gt;If you do not use&amp;nbsp;encodeURIComponent then only the first line of the question value appears. This is similar to the behaviour we have noticed with:&lt;/P&gt;&lt;P&gt;&lt;U&gt;Web survey opened from link with field settings using&amp;nbsp;encodeURIComponent&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://survey123.arcgis.com/share/xxxxitemidxxxxx?portalUrl=https://domain.com/portal&amp;amp;open=web&amp;amp;field:notesinstructions=" target="_blank" rel="noopener"&gt;https://survey123.arcgis.com/share/xxxxitemidxxxxx?portalUrl=https://domain.com/portal&amp;amp;open=web&amp;amp;field:notesinstructions=&lt;/A&gt;&lt;FONT color="#FF0000"&gt;These%20are%20the%20notes%20for%20this%20survey.There%20is%20more%20than%20one%20line%20of%20text&lt;/FONT&gt;&amp;amp;field:jobid=469&amp;amp;field:moduleid=1&amp;amp;field:location=8793%20Plein%20Street&lt;/P&gt;&lt;P&gt;In this scenario the text is cut off after line 1, but we do not see the html encoding characters&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dawn_0-1633069856402.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24340iC22DC2BBFC74B3F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dawn_0-1633069856402.png" alt="Dawn_0-1633069856402.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 10:06:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1103848#M37740</guid>
      <dc:creator>Dawn</dc:creator>
      <dc:date>2021-10-01T10:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: S123 web form: pre-fill multi-line textbox with setQuestionValue OR open=web</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1107435#M38034</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/443705"&gt;@Dawn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you share a copy of setQuestionValue script? It does not have to be a whole copy, as long as it contains basic lines to reproduce your issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 09:45:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1107435#M38034</guid>
      <dc:creator>alison_gou</dc:creator>
      <dc:date>2021-10-14T09:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: S123 web form: pre-fill multi-line textbox with setQuestionValue OR open=web</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1107445#M38035</link>
      <description>&lt;P&gt;Thanks Alison&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;callComments = "Line1: These are notes.\nLine2: And additional notes.\nLine 3: notes";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//*** 1 **** this returns the textbox containing the full character set from the URL request&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;survey123WebForm&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setQuestionValue&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;call_comments: encodeURIComponent(this.callComments),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//*** 2**** this cuts the incoming text after Line 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;survey123WebForm&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setQuestionValue&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;call_comments: this.callComments,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;*** 1 ****&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;callComments&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dstalberg1_3-1634208453310.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25180iEC2F2EB22333CF5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dstalberg1_3-1634208453310.png" alt="dstalberg1_3-1634208453310.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dstalberg1_0-1634205837444.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25176i3A79BA3C921EA1DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dstalberg1_0-1634205837444.png" alt="dstalberg1_0-1634205837444.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*** 2 ****&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;encodeURIComponent&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;callComments&lt;/SPAN&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dstalberg1_4-1634208529999.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25181iD40A2346F5598B61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dstalberg1_4-1634208529999.png" alt="dstalberg1_4-1634208529999.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dstalberg1_1-1634206760126.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25177iAED20134AF81907A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dstalberg1_1-1634206760126.png" alt="dstalberg1_1-1634206760126.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These warning are also displayed in the log - do we need to change the way the Survey123Form is called and/or update to js api 4.21?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dstalberg1_2-1634207581438.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25178i9C4F3ECDDB037778/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dstalberg1_2-1634207581438.png" alt="dstalberg1_2-1634207581438.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Oct 2021 10:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1107445#M38035</guid>
      <dc:creator>dstalberg1</dc:creator>
      <dc:date>2021-10-14T10:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: S123 web form: pre-fill multi-line textbox with setQuestionValue OR open=web</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1108682#M38119</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/447136"&gt;@dstalberg1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you try version lock as a workaround?&lt;/P&gt;&lt;P&gt;To complete version lock, two settings needed to be done:&lt;/P&gt;&lt;P&gt;1, Set for web app version lock. Go to website --click on the specific survey--settings--web app versions: use the version the survey was published with;&lt;/P&gt;&lt;P&gt;2, Set for js api version lock.&amp;nbsp; When referencing js api,&amp;nbsp; be specific about version as&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://survey123.arcgis.com/api/jsapi/3.xx" target="_blank"&gt;https://survey123.arcgis.com/api/jsapi/3.xx&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try if this would serve as your workaround.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 03:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1108682#M38119</guid>
      <dc:creator>alison_gou</dc:creator>
      <dc:date>2021-10-19T03:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: S123 web form: pre-fill multi-line textbox with setQuestionValue OR open=web</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1108722#M38121</link>
      <description>&lt;P&gt;Hi Alison&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;I take it that the workaround for the version lock only applies to the issue with the jsapi warning messages?&lt;/P&gt;&lt;P&gt;Do you have any feedback regarding the multiline textbox issue?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dawn&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 06:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1108722#M38121</guid>
      <dc:creator>Dawn</dc:creator>
      <dc:date>2021-10-19T06:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: S123 web form: pre-fill multi-line textbox with setQuestionValue OR open=web</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1108733#M38123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;The version lock is for the multiline textbox issue, please have a try.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 08:12:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1108733#M38123</guid>
      <dc:creator>alison_gou</dc:creator>
      <dc:date>2021-10-19T08:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: S123 web form: pre-fill multi-line textbox with setQuestionValue OR open=web</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1109078#M38140</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/443705"&gt;@Dawn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an undergoing issue to support line break both in js api and url parameters.&lt;/P&gt;&lt;P&gt;The version lock is workaround for line break in js api.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 02:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/s123-web-form-pre-fill-multi-line-textbox-with/m-p/1109078#M38140</guid>
      <dc:creator>alison_gou</dc:creator>
      <dc:date>2021-10-20T02:32:43Z</dc:date>
    </item>
  </channel>
</rss>

