# Modify List Field HTML for Notifications and Entry

**URL:** https://community.gravityforms.com/t/modify-list-field-html-for-notifications-and-entry/13775
**Category:** Get Help
**Tags:** gform\_save\_field\_value, fields-list, admin-notification
**Created:** [November 1, 2022, 9:14pm UTC](https://community.gravityforms.com/t/modify-list-field-html-for-notifications-and-entry/13775 "2022-11-01T21:14:55Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![user605ba17f3823e592](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user605ba17f3823e592/32/2699_2.png) [@user605ba17f3823e592](https://community.gravityforms.com/u/user605ba17f3823e592)
#### Post date: [November 1, 2022, 9:14pm UTC](https://community.gravityforms.com/t/modify-list-field-html-for-notifications-and-entry/13775/1 "2022-11-01T21:14:55Z")

</div>

Hello,

I have a customization in place where the user types into a list field input then chooses a dynamically populated value from a drop down. What I need to do now is modify the List HTML for whenever an email is sent **and** the Entry HTML to include a separate value from a custom database based on the users selected value.

Looking at the plugin, I’m not seeing an easy way to modify the List Field HTML for email or entry. It looks like I might be able to PHPDOM the email message and add in a new Table Cell (though I would prefer an easier solution) but I’m not seeing a proper hook to update the Entry list table values to include this dynamic value.

TL;DR - I need to add a custom value into the generated List Field HTML for Email and the Entry. It might be easier to assume that the value I need to add is static.

---

<div class="post-metadata">

### Author: ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)
#### Post date: [November 2, 2022, 9:08pm UTC](https://community.gravityforms.com/t/modify-list-field-html-for-notifications-and-entry/13775/2 "2022-11-02T21:08:35Z")

</div>

Hi Alex. You can use the gform\_save\_field\_value filter to modify a value before saving the entry:

> **[gform\_save\_field\_value](https://docs.gravityforms.com/gform_save_field_value/)**
>
> Use this filter to change the field's value before saving it to the database. Use in conjunction with gform\_get\_input\_value to perform low level transformations, such as encrypting/decrypting a field.

That modified value will then be available in the notification email. Does that work for you?

---

<div class="post-metadata">

### Author: ![JamieO](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/jamieo/32/2521_2.png) [@JamieO](https://community.gravityforms.com/u/JamieO)
#### Post date: [November 7, 2022, 5:17pm UTC](https://community.gravityforms.com/t/modify-list-field-html-for-notifications-and-entry/13775/3 "2022-11-07T17:17:47Z")

</div>

Another alternative would be to use [gform\_replace\_merge\_tags](https://docs.gravityforms.com/gform_replace_merge_tags/) to create a custom merge tag. Passing the list field/value as a parameter and replacing the result with your custom lookup.

J

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)
#### Post date: [December 7, 2022, 5:18pm UTC](https://community.gravityforms.com/t/modify-list-field-html-for-notifications-and-entry/13775/4 "2022-12-07T17:18:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
