Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Coral Multifield Not Preventing Empty Field Submit

Avatar

Level 3

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>

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 1
facing same issue, do we have any solution