<?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: Popup table width formatting with conditional row display in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/popup-table-width-formatting-with-conditional-row/m-p/1183178#M46459</link>
    <description>&lt;P&gt;To get tables of the full width in the popup, add "width="100%" within in your &amp;lt;figure class&amp;gt; tag. You'll also probably need to add it within the table style tag, or in your case maybe the &amp;lt;th style&amp;gt; tag. Screen capture of code that works, along with the result is below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sample HTML code specifying width=&amp;quot;100%&amp;quot;" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43536i67CF0ECA426239BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="html_sample.JPG" alt="sample HTML code specifying width=&amp;quot;100%&amp;quot;" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;sample HTML code specifying width="100%"&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="resulting tables in popup with uniform widths filling the width of the popup" style="width: 535px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43537iAC43516B077476C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="popup_example.JPG" alt="resulting tables in popup with uniform widths filling the width of the popup" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;resulting tables in popup with uniform widths filling the width of the popup&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 15:15:49 GMT</pubDate>
    <dc:creator>RaenaDeMaris</dc:creator>
    <dc:date>2022-06-15T15:15:49Z</dc:date>
    <item>
      <title>Popup table width formatting with conditional row display</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/popup-table-width-formatting-with-conditional-row/m-p/1183112#M46457</link>
      <description>&lt;P&gt;I am having trouble creating a table within a popup that has the following features:&lt;/P&gt;&lt;P&gt;- Selectively shows rows if a custom expression is not null&lt;/P&gt;&lt;P&gt;- Has consistent column width formatting.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get Table 1 to look like Table 2?&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;&lt;BR /&gt;&amp;lt;span style="font-size:medium;"&amp;gt;&amp;lt;font&amp;gt;&amp;lt;strong&amp;gt;TABLE 1:&amp;lt;/strong&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;figure class="table"&amp;gt;&lt;BR /&gt;&amp;lt;table style="border-collapse:collapse;font-family:arial, sans-serif;text-align:left;"&amp;gt;&lt;BR /&gt;&amp;lt;tbody&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;Ministry&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;URL&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;tr style="display:{expression/expr23};"&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;Children's Ministry&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;&amp;lt;a href="{Childrens_Link}"&amp;gt;&amp;lt;strong&amp;gt;Link&amp;lt;/strong&amp;gt;&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;tr style="display:{expression/expr23};"&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;Youth Ministry&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;&amp;lt;a href="{Youth_Link}"&amp;gt;&amp;lt;strong&amp;gt;Link&amp;lt;/strong&amp;gt;&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;tr style="display:{expression/expr23};"&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;Women's Ministry&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;&amp;lt;a href="{Womens_Link}"&amp;gt;&amp;lt;strong&amp;gt;Link&amp;lt;/strong&amp;gt;&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/tbody&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;/figure&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;&lt;BR /&gt;&amp;lt;br&amp;gt;&lt;BR /&gt;&amp;amp;nbsp;&lt;BR /&gt;&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;&lt;BR /&gt;&amp;lt;strong&amp;gt;TABLE 2:&amp;lt;/strong&amp;gt;&lt;BR /&gt;&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;figure class="table"&amp;gt;&lt;BR /&gt;&amp;lt;table style="border-collapse:collapse;font-family:arial, sans-serif;text-align:left;"&amp;gt;&lt;BR /&gt;&amp;lt;tbody&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;Ministry&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;URL&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;Childrens&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;TBD&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;Youth&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;TBD&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;Women's&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;th style="border:1px solid #ddd;padding:8px;"&amp;gt;&lt;BR /&gt;TBD&lt;BR /&gt;&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;BR /&gt;&amp;lt;/tbody&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;/figure&amp;gt;&lt;/P&gt;&lt;P&gt;Here is what I get:&lt;/P&gt;&lt;P&gt;Table 2 is formatted well, Table 1 is not; however, it does selectively exclude rows appropriately.&lt;/P&gt;&lt;P&gt;With Row inclusion:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jayt70_0-1655299450551.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43523i7D473D9D1B17197D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jayt70_0-1655299450551.png" alt="jayt70_0-1655299450551.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With row exclusion:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jayt70_1-1655299513665.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43524i3C0E82A54B6376DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jayt70_1-1655299513665.png" alt="jayt70_1-1655299513665.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>Wed, 15 Jun 2022 13:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/popup-table-width-formatting-with-conditional-row/m-p/1183112#M46457</guid>
      <dc:creator>jayt70</dc:creator>
      <dc:date>2022-06-15T13:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Popup table width formatting with conditional row display</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/popup-table-width-formatting-with-conditional-row/m-p/1183178#M46459</link>
      <description>&lt;P&gt;To get tables of the full width in the popup, add "width="100%" within in your &amp;lt;figure class&amp;gt; tag. You'll also probably need to add it within the table style tag, or in your case maybe the &amp;lt;th style&amp;gt; tag. Screen capture of code that works, along with the result is below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sample HTML code specifying width=&amp;quot;100%&amp;quot;" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43536i67CF0ECA426239BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="html_sample.JPG" alt="sample HTML code specifying width=&amp;quot;100%&amp;quot;" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;sample HTML code specifying width="100%"&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="resulting tables in popup with uniform widths filling the width of the popup" style="width: 535px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/43537iAC43516B077476C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="popup_example.JPG" alt="resulting tables in popup with uniform widths filling the width of the popup" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;resulting tables in popup with uniform widths filling the width of the popup&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:15:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/popup-table-width-formatting-with-conditional-row/m-p/1183178#M46459</guid>
      <dc:creator>RaenaDeMaris</dc:creator>
      <dc:date>2022-06-15T15:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Popup table width formatting with conditional row display</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/popup-table-width-formatting-with-conditional-row/m-p/1183179#M46460</link>
      <description>&lt;P&gt;As for excluding rows with no or null data, you'll write an Arcade expression for excluding that, like this:&lt;/P&gt;&lt;P&gt;## LinkToCleanupEmpty ## {expression/expr10}&lt;BR /&gt;Iif(IsEmpty(Trim($feature.URLCleanup)), "none", "table-row")&lt;/P&gt;&lt;P&gt;The Trim part of the arcade expression trims blank spaces from the field, if any. Specifying "table-row" at the end rather than the $feature or "inline" seems to work best in new Map Viewer.&lt;/P&gt;&lt;P&gt;Then the HTML for that particular table row would look similar to this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;tr style="background-color:#FFFFFF;display:{expression/expr10};" valign="top"&amp;gt;&lt;BR /&gt;&amp;lt;td style="border:1px solid rgb(203, 203, 203);padding:2px;"&amp;gt;&lt;BR /&gt;&amp;lt;span style="font-family:Arial;font-size:10px;"&amp;gt;Link to Cleanup Plan&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td style="border:1px solid rgb(203, 203, 203);padding:2px;"&amp;gt;&lt;BR /&gt;&amp;lt;a href="{URLCleanup}" rel="nofollow ugc"&amp;gt;&amp;lt;span style="font-family:Arial;font-size:10px;"&amp;gt;&amp;lt;strong&amp;gt;Click Me&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:21:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/popup-table-width-formatting-with-conditional-row/m-p/1183179#M46460</guid>
      <dc:creator>RaenaDeMaris</dc:creator>
      <dc:date>2022-06-15T15:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Popup table width formatting with conditional row display</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/popup-table-width-formatting-with-conditional-row/m-p/1183249#M46465</link>
      <description>&lt;P&gt;Thank you this fixed it!&amp;nbsp; I was using inline previously and table-row made the difference!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 18:09:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/popup-table-width-formatting-with-conditional-row/m-p/1183249#M46465</guid>
      <dc:creator>jayt70</dc:creator>
      <dc:date>2022-06-15T18:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Popup table width formatting with conditional row display</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/popup-table-width-formatting-with-conditional-row/m-p/1183250#M46466</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/592335"&gt;@jayt70&lt;/a&gt;&amp;nbsp;my bad for not including the actual HTML code that I'm using. The "width=100%" is used twice--first in the &amp;lt;figure&amp;gt; tag and next in the table style tag. Sorry about that. The actual HTML used in the popup displayed is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;&lt;BR /&gt;&amp;lt;span style="font-family:Arial;font-size:12px;"&amp;gt;&amp;lt;strong&amp;gt;Status Information&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;figure&amp;gt;&lt;BR /&gt;&amp;lt;figure&amp;gt;&lt;BR /&gt;&amp;lt;figure&amp;gt;&lt;BR /&gt;&amp;lt;figure class="table" style="width:100%;"&amp;gt;&lt;BR /&gt;&amp;lt;table style="background-color:#F7F7F7;border:1px solid black;" width="100%"&amp;gt;&lt;BR /&gt;&amp;lt;tbody&amp;gt;&lt;BR /&gt;&amp;lt;tr style="background-color:#FFFFFF;" valign="top"&amp;gt;&lt;BR /&gt;&amp;lt;td style="border:1px solid rgb(203, 203, 203);padding:2px;"&amp;gt;&lt;BR /&gt;&amp;lt;span style="font-family:Arial;font-size:10px;"&amp;gt;Closure Status&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;td style="border:1px solid rgb(203, 203, 203);padding:2px;"&amp;gt;&lt;BR /&gt;&amp;lt;span style="font-family:Arial;font-size:10px;"&amp;gt;{ClosureSta}&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;BR /&gt;&amp;lt;/tr&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 18:15:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/popup-table-width-formatting-with-conditional-row/m-p/1183250#M46466</guid>
      <dc:creator>RaenaDeMaris</dc:creator>
      <dc:date>2022-06-15T18:15:32Z</dc:date>
    </item>
  </channel>
</rss>

