# How to Access value-List property in HTML/Paragraph/Correspondence

**URL:** <https://forums.pega.com/t/how-to-access-value-list-property-in-html-paragraph-correspondence/8217>\
**Category:** General\
**Tags:** customization, 8-8-5, insurance, pega-academy, senior-system-architect\
**Created:** [September 5, 2024, 2:35pm UTC](https://forums.pega.com/t/how-to-access-value-list-property-in-html-paragraph-correspondence/8217 "2024-09-05T14:35:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SatyaGodavarthi](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/satyagodavarthi/32/15978_2.png) [@SatyaGodavarthi](https://forums.pega.com/u/SatyaGodavarthi)\
**Post date:** [September 5, 2024, 2:35pm UTC](https://forums.pega.com/t/how-to-access-value-list-property-in-html-paragraph-correspondence/8217/1 "2024-09-05T14:35:00Z")

</div>

How to Access Value list property in HTML rule or Correspondence or Paragraph?

I have below piece of code in paragraph rule and refering that in HTML to generate PDF.

at run time it is failing for referring pyTextValue(1) value list.

Please let me know how to refer value list property in HTML ?

```auto
<table border="1" cellpadding="1" cellspacing="1" style="width:1200px;">

    <tbody>

        <tr>

            <th><strong><span style="font-size:18px;"><span style="font-family:Century Gothic;">Covered Person</span></span></strong></th>

            <th><strong><span style="font-size:18px;"><span style="font-family:Century Gothic;">Minimum Amounts</span></span></strong></th>

            <th><strong><span style="font-size:18px;"><span style="font-family:Century Gothic;">Guaranteed Issue Amounts</span></span></strong></th>

        </tr>

        <tr>

            <td style="vertical-align:top;"><span style="font-family:Century Gothic;font-size:18px;"><pega:reference name="$THIS.pyLabel"></pega:reference> </span></td>

            <td style="vertical-align:top;"><span style="font-family:Century Gothic;font-size:18px;"><pega:reference name="$THIS.pyTextValue(1)"></pega:reference> </span></td>

            <td style="vertical-align:top;"><span style="font-family:Century Gothic;font-size:18px;"><pega:reference name="$THIS.pyTextValue(2)"></pega:reference> </span></td>

        </tr>

    </tbody>

</table>

```

---

<div class="post-metadata">

**Author:** ![MarijeSchillern](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marijeschillern/32/23321_2.png) [@MarijeSchillern](https://forums.pega.com/u/MarijeSchillern)\
**Post date:** [September 17, 2024, 2:02pm UTC](https://forums.pega.com/t/how-to-access-value-list-property-in-html-paragraph-correspondence/8217/2 "2024-09-17T14:02:34Z")

</div>

@SatyaGodavarthi To access a value list property in an HTML rule Correspondence or Paragraph you can use the pega:forEach tag to iterate over the value list. Here is an example of how you can achieve this in an HTML rule: html body style

⚠ This is a GenAI-powered tool. All generated answers require validation against the provided references.

[Refer Pagelist in Correspondence or Paragraph](https://support.pega.com/discussion/refer-pagelist-correspondence-or-paragraph)

[How to display page list in HTML using Pega?](https://support.pega.com/question/how-display-page-list-html-using-pega)

---

<div class="post-metadata">

**Author:** ![SatyaGodavarthi](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/satyagodavarthi/32/15978_2.png) [@SatyaGodavarthi](https://forums.pega.com/u/SatyaGodavarthi)\
**Post date:** [September 19, 2024, 8:16am UTC](https://forums.pega.com/t/how-to-access-value-list-property-in-html-paragraph-correspondence/8217/3 "2024-09-19T08:16:32Z")

</div>

@MarijeSchillern  
Yes, for pagelist we can use forEach and inside forEach we can access property belongs to that page list.

Which is like \<pega:reference name=“$THIS.pyID” /\>

Here

- $THIS refers to Page context of foor loop

- pyID is my property.

For Value list we don’t have a property to refer inside page so how to refer property inside for loop ?

---

<div class="post-metadata">

**Author:** ![SatyaGodavarthi](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/satyagodavarthi/32/15978_2.png) [@SatyaGodavarthi](https://forums.pega.com/u/SatyaGodavarthi)\
**Post date:** [September 30, 2024, 12:10pm UTC](https://forums.pega.com/t/how-to-access-value-list-property-in-html-paragraph-correspondence/8217/4 "2024-09-30T12:10:50Z")

</div>

@SatyaGodavarthi  
I got the solution  
Inside for loop property can reference as  
\<pega:reference name=“$THIS.pyTextValue(1)”\>\</pega:reference\>
