# Embed code: how to write a validation message?

**URL:** <https://community.hubspot.com/t/embed-code-how-to-write-a-validation-message/48014>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [December 5, 2021, 12:55pm UTC](https://community.hubspot.com/t/embed-code-how-to-write-a-validation-message/48014 "2021-12-05T12:55:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [December 6, 2021, 7:29am UTC](https://community.hubspot.com/t/embed-code-how-to-write-a-validation-message/48014/2 "2021-12-06T07:29:46Z")

</div>

Hi @GBulleri ,

Are you using a custom property or a default property?  
If it is the default email property then HubSpot will give an error that you can customize with some JavaScript.  
If it is a custom property, you need to write your own validation code.  
Please let me know!

---

_[View the full topic](https://community.hubspot.com/t/embed-code-how-to-write-a-validation-message/48014)._
