Pop-up Formatting using Arcade and HTML based on a Attribute Field

261
0
06-28-2022 08:03 AM
Labels (1)
bdavison
New Contributor

I am formatting pop-ups for a web map on AGOL. The map shows centerlines that are symbolized by curb types. I want the pop-ups to list priorities for the land use, for example people/green space, delivery access, and storage, near the curb based on the curb type.

I edited my post because I solved my original problem, which was showing the priority list based on the curb type. I created an attribute expression that shows the list of priorities based on curb type. Now, I would like to format the list so that the first priority is bold. I can't use <BOL></BOL>. I'm not sure how to edit the HMTL Source Code to do that. 

The picture below shows my original problem.

bdavison_1-1656427755861.png

The picture below shows my new problem.

bdavison_0-1656440880747.png

This is the HTML Code that produced the first image:

<p>
        <strong><u>Curb Type</u></strong>
</p>
<p>
        <strong>{curb_type}s</strong> &nbsp;{expression/expr0}&nbsp;
</p>
<p>
        <strong><u>Curb Use Priority</u></strong>
</p>
<p>
        <strong>1. People/Green Space</strong>
        <br>
        2. Delivery Access
       <br>
       3. Storage
</p>
<p>
       <strong>1. Passenger Access</strong>
       <br>
       2. People/Green Space
      <br>
      3. Mobility
</p>

This is the HTML Code that produced the second image:

<p>
        <strong><u>Curb Type</u></strong>
</p>
<p>
        <strong>{curb_type}s</strong> &nbsp;{expression/expr0}&nbsp;
</p>
<p>
        <strong><u>Curb Use Priority</u></strong>
</p>
<p>
        {expression/expr2}&nbsp;
</p>

 

Let me know if you all have any suggestions. Thank you!

0 Kudos
0 Replies