# Unclear of how to implement ajv-errors to display customer error messages below the label/input element

**URL:** <https://jsonforms.discourse.group/t/unclear-of-how-to-implement-ajv-errors-to-display-customer-error-messages-below-the-label-input-element/479>\
**Category:** General\
**Created:** [November 8, 2021, 9:54pm UTC](https://jsonforms.discourse.group/t/unclear-of-how-to-implement-ajv-errors-to-display-customer-error-messages-below-the-label-input-element/479 "2021-11-08T21:54:34Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Icenwharth](https://avatars.discourse-cdn.com/v4/letter/i/90db22/32.png) [@Icenwharth](https://jsonforms.discourse.group/u/Icenwharth)\
**Post date:** [July 25, 2022, 12:21pm UTC](https://jsonforms.discourse.group/t/unclear-of-how-to-implement-ajv-errors-to-display-customer-error-messages-below-the-label-input-element/479/9 "2022-07-25T12:21:04Z")

</div>

Returning defaultMessage here leads to JsonForms complaining about the type returned. I solve it by returning `defaultMessage as string`, but I am not sure this is the right approch.

 ![Screenshot 2022-07-25 at 14.22.27](https://global.discourse-cdn.com/free1/uploads/jsonforms/original/1X/384834aecf1850f82f110318f517338c5ee3f497.png)

---

_[View the full topic](https://jsonforms.discourse.group/t/unclear-of-how-to-implement-ajv-errors-to-display-customer-error-messages-below-the-label-input-element/479)._
