<?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 Hide empty field in Popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154168#M76670</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to hide empty field in Popup, i used ArcadeExpression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IIF (IsEmpty($feature.Location), "", "block");&lt;/LI-CODE&gt;&lt;P&gt;and jQuery:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$('table.esri-widget__table tr').each(function(){
            if($(this).children('td:empty').length === $(this).children('td').length){
              $(this).remove(); // or $(this).hide();
            }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;but none of them works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i hide fields "tr" in popup table? Any new idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 08:53:21 GMT</pubDate>
    <dc:creator>Vakhtang_Zubiashvili</dc:creator>
    <dc:date>2022-03-16T08:53:21Z</dc:date>
    <item>
      <title>Hide empty field in Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154168#M76670</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to hide empty field in Popup, i used ArcadeExpression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IIF (IsEmpty($feature.Location), "", "block");&lt;/LI-CODE&gt;&lt;P&gt;and jQuery:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$('table.esri-widget__table tr').each(function(){
            if($(this).children('td:empty').length === $(this).children('td').length){
              $(this).remove(); // or $(this).hide();
            }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;but none of them works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i hide fields "tr" in popup table? Any new idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 08:53:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154168#M76670</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-03-16T08:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hide empty field in Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154177#M76672</link>
      <description>&lt;P&gt;Is "tr" the fieldname?&lt;/P&gt;&lt;P&gt;In Arcade, try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IIF (IsEmpty($feature["tr"]), "None", "block");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-documents/hide-field-in-pop-up-using-arcade/ta-p/1029496" target="_blank"&gt;Hide Field in Pop-up Using Arcade - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 09:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154177#M76672</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2022-03-16T09:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Hide empty field in Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154184#M76673</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;no, "tr" is a table raw. I changed&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IIF (IsEmpty($feature["tr"]), "None", "block");&lt;/PRE&gt;&lt;P&gt;but does not work.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 10:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154184#M76673</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-03-16T10:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hide empty field in Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154296#M76676</link>
      <description>&lt;P&gt;Either your field value is not empty (maybe a space or something) or you're not adding the expression to the display property of the html style of the element. See step 8 in this guide:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-documents/hide-field-in-pop-up-using-arcade/ta-p/1029496" target="_blank"&gt;Hide Field in Pop-up Using Arcade - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 15:03:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154296#M76676</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2022-03-16T15:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hide empty field in Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154644#M76684</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;so, i add expression like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  spopupTemplate = {
            content: [{
              type: "fields", // Autocasts as new FieldsContent()
              // Autocasts as new FieldInfo[]
              fieldInfos: [{
                fieldName: "expression/ნიშნული"
              }, {
                fieldName: "expression/ჩაღრმავება"
              },{
                fieldName: "expression/წყლის დონე"
              }]
            }],
            // autocasts to ExpressionInfo class
            expressionInfos: [{
              name: "ნიშნული",
              title: "ნიშნული",
              expression: "IIF (IsEmpty($feature.Location), '', 'block');"
            },
            {
              name: "ჩაღრმავება",
              title: "ჩაღრმავება",
              expression: "$feature.CaRrmaveba"
            },
            {
              name: "წყლის დონე",
              title: "წყლის დონე",
              expression: "$feature.wylis_done"
            }]
          };&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Mar 2022 08:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154644#M76684</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-03-17T08:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hide empty field in Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154720#M76687</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/107000"&gt;@Vakhtang_Zubiashvili&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try following:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;expressionInfos: [{
              name: "ნიშნული",
              title: "ნიშნული",
              expression: "IIF (IsEmpty($feature.Location), 'None', 'inline');"
            }]&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Mar 2022 12:45:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154720#M76687</guid>
      <dc:creator>Kishore</dc:creator>
      <dc:date>2022-03-17T12:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hide empty field in Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154726#M76688</link>
      <description>&lt;P&gt;Thanks kishore,&lt;/P&gt;&lt;P&gt;but look what result i get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (55).png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36604i37C5780B4777230B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot (55).png" alt="Screenshot (55).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;it sets values, it does not hides empty value row &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 13:00:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1154726#M76688</guid>
      <dc:creator>Vakhtang_Zubiashvili</dc:creator>
      <dc:date>2022-03-17T13:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hide empty field in Popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1158250#M76813</link>
      <description>&lt;P&gt;Please check how you have configured the POP-UP it will work in case of custom popups only and if you have edited the html. Please check if you have followed step 6-8 correctly from the &lt;A href="https://community.esri.com/t5/arcgis-online-documents/hide-field-in-pop-up-using-arcade/ta-p/1029496" target="_self"&gt;link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If possible please share the popup configuration&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 05:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hide-empty-field-in-popup/m-p/1158250#M76813</guid>
      <dc:creator>SumitZarkarCT</dc:creator>
      <dc:date>2022-03-28T05:09:59Z</dc:date>
    </item>
  </channel>
</rss>

