AEM 6.3 Multifield On dialog submit

Avatar

Avatar

gokulkrish

Avatar

gokulkrish

gokulkrish

22-02-2018

HI All,

Multifield in aem 6.3 Touch ui has some problem after submitting the dialog. while submitting, values are getting greyed/squeezed in unlike normal fields. I had a requirement to handle minimum fields author can author and had achieved minlinksallowed property. JS written to handle had a error message to display on submitting with a cancel and submit button. On clicking cancel, fields authored are greyed and user is not able to edit back the values. He is forced to delete the items and author from first. Attaching the screenshot for reference.

Also written specific for this component overrides all the component dialog submit button, which always prompts with submit and cancel button.

I have  tested OOB definition-list component, which has multifield and it also behaves the same way. Can someone provide insights on this?

minlinksallowed

dialog.png

Thanks ,

Gokul

Accepted Solutions (0)

Answers (7)

Answers (7)

Avatar

Avatar

Anudeep_Garnepudi

Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi

27-10-2020

Hi @gokulkrish / @sai_santhosht50,

Please share dialog.xml

AG

Avatar

Avatar

ramb38

Avatar

ramb38

ramb38

06-08-2018

Hi smacdonald2008 I am also facing the same issue. The multifields are getting shrinked on submit of the dialog. Can you please let me know the solution for it.

Thanks!

Avatar

Avatar

ramb38

Avatar

ramb38

ramb38

06-08-2018

Hi gokulkrish​. I am also facing the same issue. The multifields are getting shrinked on submit of the dialog. Can you please let me know if you've got the solution for it.

Thanks!

Avatar

Avatar

gokulkrish

Avatar

gokulkrish

gokulkrish

22-02-2018

HI smacdonald2008

I don't have any issue storing the values in JCR . It is all happening perfect. when i do a validation check of minimum items authored, it throws a validation error message and the authored MF items are collapsed  as show in screenshot above. So author is unable to edit back the items authored and he is forced to author from the start deleting the items authored already.

Am using coral MF.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

22-02-2018

See this article:

Scott's Digital Community: Creating a HTL Repeating Data Set 6.3 Component that uses Sling Models

When you click the checkmark button - the values are submitted to the Sling Model and the MF values are stored fine. I have never seen the functionality that you are describing. Are you using the Granite/Coral MF?

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

07-08-2018

The solution now for MF is to use granite/coral resource type. I recommend gonig through this entire doc: Building Experience Manager Components using Granite/Coral Resource Types

The last section shows you MF and it works nicely.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

23-02-2018

Show us the logic you are using to perform the validation check.