<?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: Format multi-line text in a Smart Form in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/format-multi-line-text-in-a-smart-form/m-p/1413549#M8409</link>
    <description>&lt;P&gt;The new map viewer has this feature built into the popup now.&amp;nbsp; Have you tried that?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Apr 2024 15:39:32 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2024-04-22T15:39:32Z</dc:date>
    <item>
      <title>Format multi-line text in a Smart Form</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/format-multi-line-text-in-a-smart-form/m-p/1413533#M8406</link>
      <description>&lt;P&gt;Hello!&amp;nbsp; Is is possible to format multi-line text element to appear as a table?&amp;nbsp; I want inspectors to see a list of inspections that are in a related table.&amp;nbsp; Right now the result is too messy looking.&amp;nbsp; If it could be a fixed width or html table that would be better.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var pAPNO = $feature.txtAPNO
var FSetInspectionData = FeatureSetByName($map, "Inspection_DataSearch_Internet",['*'])
Console(Count(FSetInspectionData))
var FilterFSetInspectionData = Filter(FSetInspectionData, 'APNO = @pAPNO')
Console(Count(FilterFSetInspectionData))
var filterOrderedFSetInspectionData = OrderBy(filterFSetInspectionData,'scheddttm dsc')

var popupStringInsp = ''
for (var insp in filterOrderedFSetInspectionData){
  popupStringInsp +=insp.apno +" "+ 
  insp.DESCRIPT +" "+ 
  insp.STATUS +" "+ 
  Text(insp.SCHEDDTTM, 'MMM DD YYYY') +" "+ 
  insp.onemaparea +" "+ 
  insp.confirmno
  +TextFormatting.NewLine
}
return popupStringInsp&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 15:08:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/format-multi-line-text-in-a-smart-form/m-p/1413533#M8406</guid>
      <dc:creator>colejo02</dc:creator>
      <dc:date>2024-04-22T15:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Format multi-line text in a Smart Form</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/format-multi-line-text-in-a-smart-form/m-p/1413549#M8409</link>
      <description>&lt;P&gt;The new map viewer has this feature built into the popup now.&amp;nbsp; Have you tried that?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 15:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/format-multi-line-text-in-a-smart-form/m-p/1413549#M8409</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-04-22T15:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Format multi-line text in a Smart Form</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/format-multi-line-text-in-a-smart-form/m-p/1414661#M8436</link>
      <description>&lt;P&gt;Hi Doug, Thanks for responding!&amp;nbsp; I have not tried that.&amp;nbsp; When I return the featureset,&lt;/P&gt;&lt;LI-CODE lang="c"&gt;return FI   //Featureset&lt;/LI-CODE&gt;&lt;P&gt;the arcade Run shows the table with headings and values, but in the pop up it just says:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;[object Object]&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;How do I access the built-in feature in the popup?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got this to kind of work, but I don't have a good handle on it.&amp;nbsp; I realize I probably need to use attributes with an array, but I'm struggling to make this work -- I'm having a hard time understanding the syntax in this&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/profiles/popup-element/" target="_blank"&gt;example&lt;/A&gt;. Can you provide a little explanation, or what should I read to really get a good understanding?&amp;nbsp;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var SIA = FeatureSetByName($map, "SIA Transpo FullCouncil - School Impact Areas Full Council",["*"], true);
Console("SIA cnt: "+count(SIA));
var centerPt = Centroid($feature);
var FI = Intersects(SIA, centerPt); //another way to do it, Buffer($feature, -10, 'feet'));
var cntFI = Count(FI);
console(cntFI);

var a = [];
var Plan = [];

for(var item in FI){
  var SPA = "School Policy Area: " + item.Sheet1__SchoolPolicyAreaAlt1SPA;
  var PA = "Plan Area: "+ item["PlanningArea_Dissolve_4_8_20_Pl"];
  Push(a, SPA);
  Push(Plan, PA);
  
}

return {
  type: "Fields",
  SSP: a,Plan
  
};&lt;/LI-CODE&gt;&lt;P&gt;The above script&amp;nbsp; returns the image below in the Pop-up.&amp;nbsp; The top is Text content showing the expression and the lower is the expression in a Field List window.&amp;nbsp; &amp;nbsp;"SIA Arcade Exp" is the name of the expression. I also expect only one feature in the featureset, and I'm missing validation checks in the script.&amp;nbsp; I'll add these once I'm over this hump.&amp;nbsp; Thanks in advance for any help and advice. &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt; -Josh&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="colejo02_0-1713962235141.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/101977i4B4537F2893276CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="colejo02_0-1713962235141.png" alt="colejo02_0-1713962235141.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 12:45:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/format-multi-line-text-in-a-smart-form/m-p/1414661#M8436</guid>
      <dc:creator>colejo02</dc:creator>
      <dc:date>2024-04-24T12:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Format multi-line text in a Smart Form</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/format-multi-line-text-in-a-smart-form/m-p/1414708#M8440</link>
      <description>&lt;P&gt;Really confused what you are trying for here.&amp;nbsp; First I would just use the built in related stuff in the popup.&amp;nbsp; Easy and looks good.&lt;/P&gt;&lt;P&gt;On your code if you know there will be only one result then no need for a loop.&lt;/P&gt;&lt;P&gt;Seems like you are just returning these 2 fields?&amp;nbsp; If so can just send the text back.&lt;/P&gt;&lt;P&gt;return("School Policy Area:&amp;nbsp; " +&amp;nbsp; First(FI).Sheet1__SchoolPolicyAreaAlt1SPA&amp;nbsp; + "&amp;nbsp; Plan: " +&amp;nbsp;First(FI).PlanningArea_Dissolve_4_8_20_Pl)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:44:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/format-multi-line-text-in-a-smart-form/m-p/1414708#M8440</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-04-24T13:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Format multi-line text in a Smart Form</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/format-multi-line-text-in-a-smart-form/m-p/1414767#M8442</link>
      <description>&lt;P&gt;Thanks and I apologize for starting in the middle.&amp;nbsp; My goal is to have a parcel layer pop up with information from 4 featuresets.&amp;nbsp; The information from each featureset is needed to help calculate impact taxes.&amp;nbsp; I'd like all the information brought together in a single pop up so a reviewer sees all the necessary information in a single window.&amp;nbsp; This makes it easier and quicker for them.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'll intersect each layer to get the values.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;On the popup each featureset would have a Title and below the label and attribute values would appear in the standard two tone grey field list. Labels on the left and values on the right.&amp;nbsp; The title I can do with the out of the box pop up, but presenting the intersected label and attribute value in arcade is giving me fits.&amp;nbsp; I was planning to do each layer in its own expression and add them to a Field List.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 14:52:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/format-multi-line-text-in-a-smart-form/m-p/1414767#M8442</guid>
      <dc:creator>colejo02</dc:creator>
      <dc:date>2024-04-24T14:52:09Z</dc:date>
    </item>
  </channel>
</rss>

