How to make use of "Items load path" for dropdown list in AEM 6 form | Community
Skip to main content
Level 2
October 16, 2015
Solved

How to make use of "Items load path" for dropdown list in AEM 6 form

  • October 16, 2015
  • 2 replies
  • 4000 views

While creating a dropdown list in my form I noticed a field called "Items Load Path". Can this field be used to provide a url from which it loads the options available in a dropdown list? 

Where would the URL reside, and how can I put values in that URL? Can someone please show an example? 

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

Hi

I've had the same problem recently. I could solve like this:

1) in CRX create a node with property 'jcr:primaryType' = 'sling:Folder' (let's call it 'xy-lookup-list')

2) add a multi string property containing the key-value-pairs to the newly created node. The property name (let's call it 'xy-lookup-values') will be part of the loading path. A key-value pair looks like this 'keyXY=valueXY'.

3) specify the crx path as loading path in the dialog of the widget that shall use the lookup value. The loadpath is a 'crx' path like '/content/dam/.../xy-lookup-list/xy-lookup-values'. Make sure the last two elements of the path are the names of the node and the attribute.

Following explanation helped me: http://stackoverflow.com/questions/29847445/how-to-use-items-load-path-in-dropdown-list-of-aem-form

Hope this helps

2 replies

November 2, 2015

I'm trying to do the same.. but not able to get a solutionusing the default "DropdownList" under "Forms"

If we use the component used in Adaptive Forms (GuideDropDownList - /libs/fd/af/components/guidedropdownlist ) this example works: https://helpx.adobe.com/aem-forms/6/dynamically-populate-dropdowns.html

urs_h_Accepted solution
Level 3
December 15, 2015

Hi

I've had the same problem recently. I could solve like this:

1) in CRX create a node with property 'jcr:primaryType' = 'sling:Folder' (let's call it 'xy-lookup-list')

2) add a multi string property containing the key-value-pairs to the newly created node. The property name (let's call it 'xy-lookup-values') will be part of the loading path. A key-value pair looks like this 'keyXY=valueXY'.

3) specify the crx path as loading path in the dialog of the widget that shall use the lookup value. The loadpath is a 'crx' path like '/content/dam/.../xy-lookup-list/xy-lookup-values'. Make sure the last two elements of the path are the names of the node and the attribute.

Following explanation helped me: http://stackoverflow.com/questions/29847445/how-to-use-items-load-path-in-dropdown-list-of-aem-form

Hope this helps