<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Configure custom localized error message for Mandatory Fields</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121514113" />
  <subtitle>Configure custom localized error message for Mandatory Fields</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121514113</id>
  <updated>2026-04-04T02:24:27Z</updated>
  <dc:date>2026-04-04T02:24:27Z</dc:date>
  <entry>
    <title>RE: Configure custom localized error message for Mandatory Fields</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121527615" />
    <author>
      <name>Luiz Jardim</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121527615</id>
    <updated>2022-10-03T14:06:30Z</updated>
    <published>2022-10-03T12:32:23Z</published>
    <summary type="html">&lt;p&gt;Thanks for the context Krishna,&lt;/p&gt;
&lt;p&gt;The custom error message that you want to add is to solve the
  localization problem or you want to even edit the out of the box ones
  in each language?&lt;/p&gt;
&lt;p&gt;Could you please open a feature request with this case? It is
  important that have on Jira and link to this thread.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</summary>
    <dc:creator>Luiz Jardim</dc:creator>
    <dc:date>2022-10-03T12:32:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: Configure custom localized error message for Mandatory Fields</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121525546" />
    <author>
      <name>Krishna Rajappa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121525546</id>
    <updated>2022-09-29T16:53:31Z</updated>
    <published>2022-09-29T01:36:09Z</published>
    <summary type="html">&lt;p&gt;Thank you for replying.&lt;/p&gt;
&lt;p&gt;My use case is to use objects in place of Service builder with custom
  portlet to write front end elements so we would be using Object Entry
  services or headless end points to add an entry into the object.&lt;/p&gt;
&lt;p&gt;Since we would be using our custom portlet for form submission and
  Object for backed validation when mandatory fields throws exceptions
  by object validator we would need to capture and show it to user that
  this field is required error message based on locale&lt;/p&gt;
&lt;p&gt;Another use case is:&lt;/p&gt;
&lt;p&gt;We have exposed object headless end points to Mobile app and when
  they send null value to mandatory fields, request is rejected with no
  proper error message . It would be nice if we throw proper error
  messages for Mandatory fields via headless calls&lt;/p&gt;</summary>
    <dc:creator>Krishna Rajappa</dc:creator>
    <dc:date>2022-09-29T01:36:09Z</dc:date>
  </entry>
  <entry>
    <title>RE: Configure custom localized error message for Mandatory Fields</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121514872" />
    <author>
      <name>Luiz Jardim</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121514872</id>
    <updated>2022-09-14T19:20:46Z</updated>
    <published>2022-09-14T19:10:40Z</published>
    <summary type="html">&lt;p&gt;Thanks for your question, Krishna.&lt;/p&gt;
&lt;p&gt;We don't have plans so far for this implementation. Can you share the
  real example that led you to send this question? What was the use case
  and the message that you would like to have there in the object
  validation? Also, are you using in the Object layout directly, in a
  remote application, or forms with objects as storage type?&lt;/p&gt;</summary>
    <dc:creator>Luiz Jardim</dc:creator>
    <dc:date>2022-09-14T19:10:40Z</dc:date>
  </entry>
  <entry>
    <title>Configure custom localized error message for Mandatory Fields</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121514112" />
    <author>
      <name>Samuel Romeiro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121514112</id>
    <updated>2022-09-14T14:01:08Z</updated>
    <published>2022-09-13T12:36:45Z</published>
    <summary type="html">&lt;p&gt;By &lt;b&gt;Krishna Rajappa&lt;/b&gt;
  &lt;br /&gt;  &lt;/p&gt;
&lt;p&gt;Hey Team,&lt;br /&gt;
  &lt;br /&gt; As of now for Mandatory fields with null value throws exception
  in logs with following message &lt;b&gt;&amp;quot;No value was provided for
    required object field &amp;quot;Test&amp;quot; &amp;quot;&lt;/b&gt;. Is there any plan
  to implement that allow users to configure custom error message for
  Mandate fields in object ?&lt;/p&gt;</summary>
    <dc:creator>Samuel Romeiro</dc:creator>
    <dc:date>2022-09-13T12:36:45Z</dc:date>
  </entry>
</feed>
