<?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: Difficulty Removing Underscores from Field in PopupTemplate in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-removing-underscores-from-field-in/m-p/1390851#M83850</link>
    <description>&lt;P&gt;Hi, thank you very much for your help on the Esri forum! Your suggestion really worked and I was able to resolve my issue. I really appreciate your time and expertise.&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let poptemp;
	   
poptemp = new PopupTemplate({
    title: "{Name}",
    content: [{
        type: "fields",
        fieldInfos: [
            {
                fieldName: "Name_ar",
                label: "Name_ar"
            },
            {
                fieldName: "expression/Name_en",
                label: "Name_en",
            },
            {
                fieldName: "Wiki_ar_link",
                label: "Wiki_ar_link"
            },
            {
                fieldName: "Wiki_en_link",
                label: "Wiki_en_link"
            }
        ]
    }],
    expressionInfos:[
            {
                title: "Name_en",
                name: "Name_en",
                expression: "Replace($feature.Name_en, '_', '')", 
            }
            ]
});&lt;/LI-CODE&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Med-Karim Rouissi&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 00:42:40 GMT</pubDate>
    <dc:creator>Med-Karim-Rouissi</dc:creator>
    <dc:date>2024-03-05T00:42:40Z</dc:date>
    <item>
      <title>Difficulty Removing Underscores from Field in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-removing-underscores-from-field-in/m-p/1389835#M83825</link>
      <description>&lt;P&gt;Hello ESRI Community,&lt;/P&gt;&lt;P&gt;I hope this message finds you well. I'm currently facing an issue with the JavaScript API for ArcGIS 4.24 while attempting to display the "Name_en" attribute in a PopupTemplate without underscores. Despite trying various approaches, the field's content is not being displayed as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a snippet of my current code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let poptemp;

poptemp = new PopupTemplate({
    title: "{Name}",
    content: [{
        type: "fields",
        fieldInfos: [
            {
                fieldName: "Name_ar",
                label: "Name_ar"
            },
            {
                fieldName: "Name_en".replace(/_/g, ''),  
                label: "Name_en"
            },
            {
                fieldName: "Wiki_ar_link",
                label: "Wiki_ar_link"
            },
            {
                fieldName: "Wiki_en_link",
                label: "Wiki_en_link"
            }
        ]
    }]
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attempted to utilize the replace method to remove underscores in the "Name_en" field, but it doesn't seem to work as intended. I've also explored the use of expressionInfos without success.&lt;/P&gt;&lt;P&gt;If anyone has encountered a similar issue or has suggestions on how to correctly format the "Name_en" field within a PopupTemplate, I would greatly appreciate your insights.&lt;/P&gt;&lt;P&gt;Thank you in advance for your assistance!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Karim&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 02:19:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-removing-underscores-from-field-in/m-p/1389835#M83825</guid>
      <dc:creator>Med-Karim-Rouissi</dc:creator>
      <dc:date>2024-03-02T02:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Removing Underscores from Field in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-removing-underscores-from-field-in/m-p/1390498#M83845</link>
      <description>&lt;P&gt;You need to do this using arcade in the expressionInfos.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 16:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-removing-underscores-from-field-in/m-p/1390498#M83845</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2024-03-04T16:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Removing Underscores from Field in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-removing-underscores-from-field-in/m-p/1390508#M83846</link>
      <description>&lt;P&gt;See this code pen for a working example.&amp;nbsp; It replaces "," with "&amp;nbsp; ZZZZ&amp;nbsp; '.&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/mbdriscoll/pen/gOyprmg" target="_blank"&gt;https://codepen.io/mbdriscoll/pen/gOyprmg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 16:49:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-removing-underscores-from-field-in/m-p/1390508#M83846</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2024-03-04T16:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Removing Underscores from Field in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-removing-underscores-from-field-in/m-p/1390851#M83850</link>
      <description>&lt;P&gt;Hi, thank you very much for your help on the Esri forum! Your suggestion really worked and I was able to resolve my issue. I really appreciate your time and expertise.&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let poptemp;
	   
poptemp = new PopupTemplate({
    title: "{Name}",
    content: [{
        type: "fields",
        fieldInfos: [
            {
                fieldName: "Name_ar",
                label: "Name_ar"
            },
            {
                fieldName: "expression/Name_en",
                label: "Name_en",
            },
            {
                fieldName: "Wiki_ar_link",
                label: "Wiki_ar_link"
            },
            {
                fieldName: "Wiki_en_link",
                label: "Wiki_en_link"
            }
        ]
    }],
    expressionInfos:[
            {
                title: "Name_en",
                name: "Name_en",
                expression: "Replace($feature.Name_en, '_', '')", 
            }
            ]
});&lt;/LI-CODE&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Med-Karim Rouissi&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 00:42:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-removing-underscores-from-field-in/m-p/1390851#M83850</guid>
      <dc:creator>Med-Karim-Rouissi</dc:creator>
      <dc:date>2024-03-05T00:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty Removing Underscores from Field in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-removing-underscores-from-field-in/m-p/1390854#M83851</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"One last question, the modules: "&lt;STRONG&gt;esri/popup/ExpressionInfo&lt;/STRONG&gt;" and "&lt;STRONG&gt;esri/support/arcadeUtils&lt;/STRONG&gt;", seem not to be necessary? They are not visible in your example, and in my code, their presence or absence doesn't make any difference. I simply have fewer errors in my console when I don't use them. The errors are non-blocking, and I am using the ArcGIS API for JavaScript 4.24 due to the requirements of my application."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 00:56:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-removing-underscores-from-field-in/m-p/1390854#M83851</guid>
      <dc:creator>Med-Karim-Rouissi</dc:creator>
      <dc:date>2024-03-05T00:56:45Z</dc:date>
    </item>
  </channel>
</rss>

