# JSON FORMS array custom error messages

**URL:** <https://jsonforms.discourse.group/t/json-forms-array-custom-error-messages/1904>\
**Category:** General\
**Created:** [January 9, 2024, 7:19am UTC](https://jsonforms.discourse.group/t/json-forms-array-custom-error-messages/1904 "2024-01-09T07:19:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varuu](https://avatars.discourse-cdn.com/v4/letter/v/c67d28/32.png) [@Varuu](https://jsonforms.discourse.group/u/Varuu)\
**Post date:** [January 9, 2024, 7:19am UTC](https://jsonforms.discourse.group/t/json-forms-array-custom-error-messages/1904/1 "2024-01-09T07:19:45Z")

</div>

I’m using json form array I want to add custom error message to fields in the array using ajv can you please help me

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [January 10, 2024, 7:47am UTC](https://jsonforms.discourse.group/t/json-forms-array-custom-error-messages/1904/2 "2024-01-10T07:47:57Z")

</div>

Hi @Varuu,

Can you outline what you already tried? Out of the box there are two approaches which don’t require the use of custom renderers:

- Use the [i18n support of JSON Forms](https://jsonforms.io/docs/i18n) to customize error messages
- Use the new [middleware support](https://github.com/eclipsesource/jsonforms/pull/2220) to adapt AJV errors (i.e. change their message) before they are stored in the JSON Forms wide store
