<?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>Custom required form field with custom validation</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120487010" />
  <subtitle>Custom required form field with custom validation</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120487010</id>
  <updated>2026-04-04T06:23:54Z</updated>
  <dc:date>2026-04-04T06:23:54Z</dc:date>
  <entry>
    <title>Custom required form field with custom validation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120487009" />
    <author>
      <name>Uwe Peters</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120487009</id>
    <updated>2020-12-03T18:24:06Z</updated>
    <published>2020-12-03T15:18:38Z</published>
    <summary type="html">&lt;p&gt;I'm struggling to create a required custom formfield with some custom
  validation logic for Liferay CE 7.3+.&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;The validation for the field is very complex. &lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;The Check for validation needs to be BEFORE sending the
  FORM-Submit when the formfield changed and the fetch POST-Request is
  sent in the background.&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;Where and how should I/do I have to place my validation? &lt;/p&gt;
&lt;p&gt;Inside the Formfield-ReactJS? In the controller where the POST
  Request is going to? (Where? How?) Somewhere in the DDMFormFieldTypeSettings? &lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;Are there any valuable hints anybody can give me for my task? I
  am building my custom formfield with this &lt;/p&gt;</summary>
    <dc:creator>Uwe Peters</dc:creator>
    <dc:date>2020-12-03T15:18:38Z</dc:date>
  </entry>
</feed>
