Touch Optimized UI - Default Value for Granite Dropdown
Hi,
Default Value for Granite Dropdown (Touch Optimized UI ) is not working for me.
I have followed information on how to create a dropdown control here:
https://docs.adobe.com/docs/en/cq/5-6-1/touch-ui/granite-reference.html#Form Inputs - Dropdown
I have created a it in the following way:
<relationID fieldDescription="Relation ID" fieldLabel="Relation ID" jcr:primaryType="nt:unstructured" name="./relationID" sling:resourceType="granite/ui/components/foundation/form/dropdown" value="SELECT_DEVICE"> <items jcr:primaryType="nt:unstructured"> <option_0 jcr:primaryType="nt:unstructured" text="Select Plan" value="SELECT_PLAN"/> <option_1 jcr:primaryType="nt:unstructured" text="Select Device" value="SELECT_DEVICE"/> <option_2 jcr:primaryType="nt:unstructured" text="Empty" value=""/> </items> </relationID>
PS - i am using granite/ui/components/foundation/form/dropdown but i noticed that there is also a granite/ui/components/foundation/form/select type. what is the difference between them?
Note, if i set the type to multiple I have the same problem and can;t set a default value for it.
