Hello Eric and tb,
Thank you for your suggestions. I couldn't get Eric's code to work without
removing some stuff off the end of it and adding a single "]", but then it
listed tiddler names not field values, so I must have broken it.
<$list filter="[tag[some field]has[field_name_1]]"/>
tb's code worked as expected when added to new tiddler, but when I add it
to a tiddler with:
tag =
$:/tags/EditTemplate
field list-after=
$:/core/ui/EditTemplate/body
and text=
<$list filter="[all[current]tag[some field]]">
field_name_1: <$select field="field_name_1">
<option value=''></option>
<option>value 1</option>
<option>value 2</option>
<option>value 3</option>
</$select>
field_name_2: <$select field="field_name_2">
<option>default value</option>
<option>
{{{ [tag[some field]each[field_name_2]get[field_name_2]sort[title]] }}}
</option>
</$select>
</$list>
The
<option>
{{{ [tag[some field]each[field_name_2]get[field_name_2]sort[title]] }}}
</option>
part just concatenates all the field values into a single line with no
spaces, rather than a list of separately selectable options, that I was
hoping for.
Where might I have gone wrong?
Thank you, Bob
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/a0d53802-fb0e-4fc5-bb9f-55f8462bc175%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.