Coral Multifield Not Preventing Empty Field Submit | Community
Skip to main content
Level 2
Jul 3, 2018 12:33 PM UTC
Solved

Coral Multifield Not Preventing Empty Field Submit

Hi Community!

I wonder if you ever noticed that Coral Multifield (granite/ui/components/coral/foundation/form/multifield) dialog item does not block user from submitting an empty required field. At the same time, Granite multifield (granite/ui/components/foundation/form/multifield) dialog item does the job well.

So, please, share your experience: do you have the same?

P.S. My dialog configuration with Coral widget onboard

<coralmultifield
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
   composite="{Boolean}true"
   fieldLabel="Actions"
   required="{Boolean}true">
  <field
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/fieldset"
   acs-commons-nested="NODE_STORE"
   name="./">
  <layout
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
   method="absolute"/>
  <items jcr:primaryType="nt:unstructured">
  <column
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/container">
  <items jcr:primaryType="nt:unstructured">
  <field1
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textfield"
   emptyText="Field 1"
   name="./f1"
   required="{Boolean}true"/>
  <field2
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textfield"
   emptyText="Field 2"
   name="./f2"/>
  <field3
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/textfield"
   emptyText="Field 3"
   name="./f3"/>
  </items>
  </column>
  </items>
  </field>
</coralmultifield>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Jul 3, 2018 3:30 PM UTC

Hi,

I created Multifield with Coral3, required works fine for me and doesn't submit dialog if field is mandatory.

I am using AEM6.3

I'll try with your code also.

Thanks

Arun

Arun Patidar

2 replies

New Participant
Jul 23, 2020 6:06 AM UTC
facing same issue, do we have any solution
Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jul 3, 2018 3:30 PM UTC

Hi,

I created Multifield with Coral3, required works fine for me and doesn't submit dialog if field is mandatory.

I am using AEM6.3

I'll try with your code also.

Thanks

Arun

Translate
Arun Patidar