Select Widget and tabs macro: Is this a bug?

46 views
Skip to first unread message

Mohammad

unread,
Oct 12, 2018, 11:31:12 AM10/12/18
to TiddlyWiki
Assume you have some tiddlers used in a tabs macro. Among them you have the below tiddler uses select widget. The select widget here uses a field called fld01.

Tiddler title: Tida
<$select field='fld01' defualt="aa">
<option>aa</option>
<option>bb</option>
<option>cc</option>
</$select>

Now assume you have another tiddler called Tutorial and you have the below code inside it

Tiddler title: Tutorial
<<tabs "Tida Tidb">>


The strange thing here is the select widget creates a field fld01 in both tiddlers. I dont understand why tiddler Tutorial should have a fld01 field!!
Suggest I use tens of tiddlers in tabs macro, and all of them have a select widget linked to a field then the Tutorial tiddler will have as many as those
tiddlers field!!

The attached json file reproduces this issue!


-Mohammad 
sample-selectwidget-issue.json

Mark S.

unread,
Oct 12, 2018, 1:37:49 PM10/12/18
to TiddlyWiki
This problem is mentioned, perhaps a bit obliquely, at the bottom of :

https://tiddlywiki.com/#tabs%20Macro

The upshot is that you can wrap your select code like this:

<$tiddler tiddler=<<currentTab>>>
<$select field='fld01' default="aa">
<option>aa</option>
<option>bb</option>
<option>cc</option>

</$select>
</$tiddler>

-- Mark

Mohammad

unread,
Oct 12, 2018, 1:51:01 PM10/12/18
to TiddlyWiki
Many thanks Mark.
Solved!
Reply all
Reply to author
Forward
0 new messages