Update using javascript for coral touch ui tag based auto complete
Hi,
Does any one have any inputs as how can i fill tags when i get json response in javascript
I tried with below javascript code but the below tags does not show up under tag field when touch ui dialog is loaded
========================================
$("#TagIdcomp").val(["/etc/tags/asset/guide"]);
or
$("#TagIdcomp").val("/etc/tags/asset/guide");
or
$("#TagIdcomp").val(["Asset:Guide""]);
=====================================
I have the tag
<tagRegion
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/autocomplete"
fieldLabel=" Tag"
multiple="{Boolean}true"
name="../../tagsRegion"
granite:id="TagIdcomp"
mode="contains">
<datasource
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/common/datasources/tags"/>
<options
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/autocomplete/list"/>
<values
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/autocomplete/tags"/>
</tagRegion>
Thanks.