This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
how to set default value in aem6.4 dialog property . I have used "value" property but its not working .Is there anything else i need to add for default value .
Solved! Go to Solution.
Views
Replies
Total Likes
Verified this in 6.4 it works fine for me
<image
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldDescription="Image"
fieldLabel="Image Path [Desktop]"
name="./image"
rootPath="/content/dam"
value="/content/dam/we-retail"/>
Views
Replies
Total Likes
Hi,
value should work, can you share your dialog xml? or try to add existing list component in we-retail site and check existing list core component's childDepth default value should appears
/apps/core/wcm/components/list/v1/list/cq:dialog/content/items/tabs/items/listSettings/items/column/items/setChildren/items/well/items/childDepth
Views
Replies
Total Likes
Is it possible to set default value in pathbrowser ? i m trying to set in default value in pathbrowser filed
Views
Replies
Total Likes
Yes its possible to set a default value for the pathbrowser field. value property should work fine to set a default value.
Views
Replies
Total Likes
Verified this in 6.4 it works fine for me
<image
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldDescription="Image"
fieldLabel="Image Path [Desktop]"
name="./image"
rootPath="/content/dam"
value="/content/dam/we-retail"/>
Views
Replies
Total Likes
Here is my dialog.xml <path
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/pathbrowser"
fieldLabel="Demo Path"
name="./path"
value="/content/default.jpg"/>
Views
Replies
Total Likes
Checked with the dialog snippet you shared value property works fine for me.
Views
Replies
Total Likes
Views
Replies
Total Likes
I dont know whats happening with me still its not working for me
Views
Replies
Total Likes
"Is it possible to set default value in pathbrowser:
You can set rootPath - that will act as the starting point when the user clicks the button in the component dialog. See the section titled ""Add the pathbrowser field to the dialog:
Building Experience Manager Components using Granite/Coral Resource Types
Views
Replies
Total Likes
Views
Likes
Replies