<?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 form field and preconfigured validation</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120680784" />
  <subtitle>custom form field and preconfigured validation</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120680784</id>
  <updated>2026-04-05T08:19:34Z</updated>
  <dc:date>2026-04-05T08:19:34Z</dc:date>
  <entry>
    <title>RE: custom form field and preconfigured validation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120906174" />
    <author>
      <name>Francisco Javier Rivera</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120906174</id>
    <updated>2021-07-02T12:51:57Z</updated>
    <published>2021-07-02T12:51:56Z</published>
    <summary type="html">&lt;p&gt;Hello @Uwe,&lt;/p&gt;
&lt;p&gt;did you manage to do this in 7.3? I am having problems creating a
  form field with settings in Liferay 7.3.6 GA7, do you have a code that
  you can share that works?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</summary>
    <dc:creator>Francisco Javier Rivera</dc:creator>
    <dc:date>2021-07-02T12:51:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: custom form field and preconfigured validation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120689659" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120689659</id>
    <updated>2021-03-22T13:17:22Z</updated>
    <published>2021-03-22T13:17:22Z</published>
    <summary type="html">&lt;p&gt;Hi Uwe, I asked this internally and there should be a way to do what
  you want via &lt;code&gt;DDMFormFieldTypeSettings&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The bad news is that this isn't working as expected so there's more
  investigation needed into why, maybe a bug.&lt;/p&gt;
&lt;p&gt;The good news is that you should still be able to do what you want.
  Create a &lt;code&gt;*DDMFormFieldTemplateContextContributor&lt;/code&gt; for your
  custom field and try to set the custom validation values there, like
  in &lt;a&gt;ValidationDDMFormFieldTemplateContextContributor.java&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2021-03-22T13:17:22Z</dc:date>
  </entry>
  <entry>
    <title>RE: custom form field and preconfigured validation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120686998" />
    <author>
      <name>Uwe Peters</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120686998</id>
    <updated>2021-03-16T06:15:50Z</updated>
    <published>2021-03-16T06:15:50Z</published>
    <summary type="html">&lt;p&gt;Well I cant find this in the docs either. Thank you Fredi B but this
  doesnt give much hope.&lt;/p&gt;
&lt;p&gt;Is there anybody else who is building own custom form fields who can
  help here? Or somebody who has some experience or helpful links?&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;I think this should not  be that difficult, but as I said I cant
  find any help for this specific thing online :(.&lt;/p&gt;</summary>
    <dc:creator>Uwe Peters</dc:creator>
    <dc:date>2021-03-16T06:15:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: custom form field and preconfigured validation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120683895" />
    <author>
      <name>Fredi B</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120683895</id>
    <updated>2021-03-12T15:05:18Z</updated>
    <published>2021-03-12T15:05:18Z</published>
    <summary type="html">&lt;p&gt;Sorry to say but you should not rely on forms with Liferay CE
  7.3.5ga6 maybe not even with Liferay at all.&lt;/p&gt;
&lt;p&gt;We also had a problem with Liferay Forms with this version and
  decided to not use Liferay for such form-hevy demands. https://liferay.dev/#/questions/development/7-3-5-ga6-formbuilder-desaster/&lt;/p&gt;
&lt;p&gt;I was not able to find documentation or help for quite similar
  demands as you have and this forum is not really heavy frequented
  anymore after the &amp;quot;style update&amp;quot;.&lt;/p&gt;
&lt;p&gt;Cheers and Good Luck. &lt;/p&gt;</summary>
    <dc:creator>Fredi B</dc:creator>
    <dc:date>2021-03-12T15:05:18Z</dc:date>
  </entry>
  <entry>
    <title>custom form field and preconfigured validation</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120680783" />
    <author>
      <name>Uwe Peters</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120680783</id>
    <updated>2021-03-10T08:51:04Z</updated>
    <published>2021-03-10T08:51:04Z</published>
    <summary type="html">&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have build my own custom form field for the forms builder. I have
  set the settings for my form field through an interface
  DDMFormFieldTypeSettings that extends DefaultDDMFormFieldTypeSettings. &lt;/p&gt;
&lt;p&gt;In liferay forms builder I can place my own form field and set in the
  validation for it in the properties tab of my custom formfield.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Is it possible to preconfigure the custom form field validation? &lt;/strong&gt;
  &lt;br /&gt;I want to place my custom form field and then by default it
  should have these validation settings preconfigured:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;the the validation toggleswitch should be true &lt;/li&gt;
  &lt;li&gt;the selected 'If Input' dropdown option should be 'does not match'&lt;/li&gt;
  &lt;li&gt;the 'The value' input for regex should contain my custom regex string&lt;/li&gt;
  &lt;li&gt;the 'show error message' input should contain my custom
    errormessage string&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I think I can do this in my DDMFormFieldTypeSettings class but I dont
  know how.&lt;/p&gt;
&lt;p&gt;I am using Liferay CE 7.3.5ga6.&lt;br /&gt; &lt;/p&gt;</summary>
    <dc:creator>Uwe Peters</dc:creator>
    <dc:date>2021-03-10T08:51:04Z</dc:date>
  </entry>
</feed>
