# Autopopulating Contact fields based on another field

**URL:** <https://community.hubspot.com/t/autopopulating-contact-fields-based-on-another-field/108686>\
**Category:** Tips, Tricks & Best Practices\
**Tags:** contacts\
**Created:** [June 5, 2024, 9:38am UTC](https://community.hubspot.com/t/autopopulating-contact-fields-based-on-another-field/108686 "2024-06-05T09:38:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GBond](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gbond/32/102437_2.png) [@GBond](https://community.hubspot.com/u/GBond)\
**Post date:** [June 5, 2024, 9:38am UTC](https://community.hubspot.com/t/autopopulating-contact-fields-based-on-another-field/108686/1 "2024-06-05T09:38:44Z")

</div>

Hi,

I’m looking for a way of auto-populating a field of a contact based off another record (much as one would do in your email system). Basically setting up rules for contacts.

For example one such rule would be: if there email address ends in [@EBay](https://community.hubspot.com/t5/user/viewprofilepage/user-id/641335).com then change/select this value on field B.

Basically I’m looking for a way of automatically defining contacts as spam or not to be used in our marketing emails.

Thanks

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [June 5, 2024, 9:42am UTC](https://community.hubspot.com/t/autopopulating-contact-fields-based-on-another-field/108686/2 "2024-06-05T09:42:47Z")

</div>

Hi @GBond,

This requires / can be done with a workflow: [Create workflows](https://knowledge.hubspot.com/workflows/create-workflows)

(Workflows are available in Professional subscriptions.)

You would enroll contacts when “Email domain is any of [ebay.com](http://ebay.com)”, then use the “Set property value” action to update your custom property to the desired value.

With workflows, this cannot be automated.

Best regards!
