tag:help-archives.hannonhill.com,2010-02-09:/discussions/velocity-formats/13769-returning-dynamic-metadata-fields-from-a-multi-select-using-_query-toolCascade CMS: Discussion 2016-03-07T13:24:15Ztag:help-archives.hannonhill.com,2010-02-09:Comment/393209572016-03-03T20:41:11Z2016-03-03T20:41:11Zreturning dynamic metadata fields from a multi-select using $_.query() tool<div><p>Hi Jason,</p>
<p>When you have a moment, take a look at <a href="http://help.hannonhill.com/discussions/how-do-i/16519-get-checkbox-value-using-block-locator-tool">
my response to this similar discussion</a> for additional
information on how to access the values from a multi-select
field.</p>
<p>This particular discussion refers to structured data, but it
should be the same scenario for dynamic metadata fields.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/393209572016-03-06T18:48:20Z2016-03-06T18:48:20Zreturning dynamic metadata fields from a multi-select using $_.query() tool<div><p>Thanks for the direction. the following worked for us:</p>
<p>#set($category = []) #set($categories =
$meta.getDynamicField('category').values) #foreach($cate in
$categories) #set($success = $category.add($cate)) ##using #set to
silence the result #end</p>
<p>${_DisplayTool.list($category," AND "," AND ","")}</p>
<ul>
<li>Jason H.</li>
</ul></div>jason.c.hoyttag:help-archives.hannonhill.com,2010-02-09:Comment/393209572016-03-07T13:24:14Z2016-03-07T13:24:14Zreturning dynamic metadata fields from a multi-select using $_.query() tool<div><p>Not a problem at all, Jason. I am glad to hear I was able to
help point you in the right direction.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Have a great day!</p></div>Ryan Griffith