Hi,
I have a select widget for which the values in options are coming from a servlet call.I want the default value for the select widget to be the first value returned in the json from the servlet.
This is the videoPlayerPL select widget defined and I am getting the options from the servlet.
<videoPlayerPL
jcr:primaryType="cq:Widget"
allowBlank="false"
fieldDescription=""
fieldLabel="Account:"
fieldSubLabel=""
name="./bcAccount"
options="/libs/brightcoveaccountlist"
optionsQTipField="name"
optionsTextField="name"
type="select"
xtype="selection">
<optionsConfig
jcr:primaryType="nt:unstructured"
editable="{Boolean}true"/>
</videoPlayerPL>