Required fields doesn't work in multifield in multifield? | Community
Skip to main content
bhoang
Level 4
Oct 8, 2019 8:31 AM UTC

Required fields doesn't work in multifield in multifield?

Hi All,

I am using multifield in my component for the user config the content. I create multifield in multifield as below and set the required is true.

And the form for the user config content as below:

Wrong:

Right:

When I add field at the first-time, it can not validate the required field. I can click Save button to save the content with null required fields.

After save, I go to edit content of the component. The existing group can validate required field when I add new page.

However, if I add new group and add new page field in new group. It cann't validate the required fields.

Please help me,

Why AEM is wrong?

How to fix it?

Thank you so much,

BienHV

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

bhoang
bhoangAuthor
Level 4
Dec 4, 2019 9:39 AM UTC

Hi ka786,

Could you help me  update the logic in multifield to fix this bug?

Thanks you so much,

BienHV

Translate
Ankur_Khare
New Participant
Oct 9, 2019 1:57 PM UTC

If we need to use ui multifield then we need to update the logic in multifield js to support this scenario, no other way

Please check multifield js which is getting called and debug the code when you submit the dialog.

Translate
bhoang
bhoangAuthor
Level 4
Oct 9, 2019 12:21 PM UTC

I know granite/ui/components/coral/foundation/form/multifield

However, the pathbrowse didn't work with coral/foundation/form/multifield

Translate
Ankur_Khare
New Participant
Oct 9, 2019 11:21 AM UTC

Could you pls try sling:resourceType="granite/ui/components/coral/foundation/form/multifield

Translate
bhoang
bhoangAuthor
Level 4
Oct 9, 2019 10:45 AM UTC

Hi ka786,

I am using granite/ui/components/foundation/form/multifield

Please help me,

Thank you so much,

Translate
Ankur_Khare
New Participant
Oct 9, 2019 8:44 AM UTC

Hi,

Which multifield code are you using ?

Seems there was a issue with mandatory fields-

Mandatory field is not working properly in multifieldpanel in Touch UI · Issue #662 · Adobe-Consulting-Services/acs-aem-…

Translate