Select tiddler doesn't populate if only one option ??

52 views
Skip to first unread message

Mark S.

unread,
Jun 3, 2016, 4:36:43 PM6/3/16
to TiddlyWiki
Not sure if this counts as a bug, but ...

This example, almost taken from TiddlyWiki.com

Select source:
<$select tiddler="$:/Generate_source" default='Incoming'>
<$list filter='[tag[DATA]sort[title]]'>
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</
$select>


What I found is that $:/Generate_source never gets populated if there is only 1 selection. You have to create at least two options in order to activate the population mechanism.

Thanks,
Mark

Jeremy Ruston

unread,
Jun 3, 2016, 4:42:01 PM6/3/16
to tiddl...@googlegroups.com
Hi Mark

I don’t think it's a bug. The new value is assigned to the target tiddler when the entry in the select widget is changed by the user. If there’s only one entry then it can’t be changed, and so won’t be updated.

Best wishes

Jeremy


--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8e0b6242-d0ae-478b-b45f-632f378ef45a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

c pa

unread,
Jun 3, 2016, 7:56:14 PM6/3/16
to TiddlyWiki
Mark

I always do the following for my selects:

Select source:
<$select tiddler="$:/Generate_source" default='Incoming'>
    <option value=""> -- </option>
    <
$list filter='[tag[DATA]sort[title]]'>

Mark S.

unread,
Jun 3, 2016, 8:03:34 PM6/3/16
to TiddlyWiki
Thanks -- that's a good tip.

Mark
Reply all
Reply to author
Forward
0 new messages