multi field component adding fields twice when dialog opened | Community
Skip to main content
sreenu539
Level 7
December 17, 2018

multi field component adding fields twice when dialog opened

  • December 17, 2018
  • 3 replies
  • 6543 views

Hi All,

I have used sling:resourceType="granite/ui/components/foundation/form/multifield" to create multifield dialog ( text filed, path browser field).

Issue is: I authored textfield, browser field in the multifield.

When ever I open the dialog, fields are getting added twice ( two text fields, two path browser fields with same data)

If I save it, obviously it creates more nodes in content path.

I do see .infinity.json calls in browser network tab (5 calls.) and no errors in browser console.

Can any one help me?

environment: AEM 6.3.2 , AEM 6.3.3

Thanks,

Sri

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

3 replies

Lokesh_Shivalingaiah
Level 10
December 17, 2018

Hi Sri,

This document Creating a Granite/Coral 6.3 Multifield HTL component for Adobe Experience Manager has an example to create multifield dialog. Refer/compare to see if you have missed anything in your implementation.

If the issue still persist, you may have to provide more details on your implementation.

smacdonald2008
Level 10
December 17, 2018

1st issue - move to a granite/ui/components/coral/foundation/form/multifield resource type.

See this article too. A Multifield works as expected when you implement it as shown here:

Building Experience Manager Components using Granite/Coral Resource Types

See:

VeenaVikraman
Community Advisor
Community Advisor
December 18, 2018

Can you post your dialog.xml here ? By any chance have you added any id to the fields ?

sreenu539
sreenu539Author
Level 7
December 22, 2018

we had two applications, one of them as sub package to another application. Both had touch-ui-multifield client library with same js files, that caused the issue.

Now, the issue is even though I deleted touch-ui-multifield from code base and filter.xml has entry for "etc/designs/my-site" ,

mvn autoInstallPackage generated zip file does not have deleted client lib folder.

I still see the touch-ui-multifield in crx/de etc/designs/my-site , not getting deleted.

Any ideas on this. It is weird that , if i create a new client lib , deploy it and delete it ... changes reflecting onto crx/de properly but for this specific "touch-ui-multifield" (cq.authoring.dialog is the category) folder not getting deleted.

I am going to open a adobe ticket for this. If anyone has any idea, please share it.

Thanks.