I'd like to fill the values field for a listbox tv by means of a snippet.
I've got the snippet and it returns eg; id==user1||id==user2
now whats next, apparently I can't just use a runsnippet call in the values field.
So how to do this?
You can use the @EVAL or @CHUNK - binding to fill inputOptionValues dynamically.
@EVAL return $modx->runSnippet('yourSnippet',array('propertyA'=>'foo','propertyB'=>'bar'));
or
and in your chunk:
[[yourSnippet?
&propertyA = `foo`
&propertyB = `bar`
]]
Ah okay. Should have known :S
using @EVAL no result shows up
however, the @CHUNK with the snippetcall in it does work just fine. Preferred over eval anyway so problem solved.
Thanks Bruno!