Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Who Me Too'd this topic

karansheel
Level 3
Level 3

Hi,

I have a requirement in which i have to disable the dropdown field in dialog . To do this, i have added two properties ""disabled": true,"  & "renderReadOnly": true, but still it's not working .I'm able to manipulate dropdown value. where as it's working fine for text field.

here is json of this node

{

"jcr:primaryType": "nt:unstructured",

"cq:showOnCreate": true,

"jcr:title": "Page type",

"sling:resourceType": "granite/ui/components/foundation/form/fieldset",

"items": {

"jcr:primaryType": "nt:unstructured",

"pagetitle": {

"jcr:primaryType": "nt:unstructured",

"cq:showOnCreate": true,

"name": "./pageType",

"class": "cq-dialog-dropdown-showhide",

"cq-msm-lockable": "pageType",

"disabled": true,

"cq-dialog-dropdown-showhide-target": ".carousel-option-listfrom-showhide-target",

"fieldLabel": "Page Type",

"sling:resourceType": "granite/ui/components/foundation/form/select",

"renderReadOnly": true,

"items": {

"jcr:primaryType": "nt:unstructured",

"news": {

"jcr:primaryType": "nt:unstructured",

"text": "News",

"value": "News"

},

"products": {

"jcr:primaryType": "nt:unstructured",

"text": "Products",

"value": "Products"

},

"events": {

"jcr:primaryType": "nt:unstructured",

"text": "Events",

"value": "Events"

}

}

}

}

}

thanks,

Who Me Too'd this topic