Hmmm.  Looking further down the code, I see you're running into the same 
issue with the <$checkbox> widget, too.  You won't be able to run your 
<<add>> and <<remove>> macros within the <$checkbox> widget.  (I learned 
this the hard way myself.) 
<https://groups.google.com/d/msg/tiddlywiki/mBpOhZP5SVw/V5aGCMlzDAAJ>

There may be a solution using just the core, but I don't know what it is. 
 I ran into a similar wall a while back, before I discovered <$setvars>, 
which I now use to build a lot of widget calls pseudodynamically.  Between 
that and feedback from Matabele, Jed, and Eric on my earlier thread, I came 
up with a solution something like this:

http://tiddlywiki.secret-hq.com/testing/AndrewButtonTest.html

It uses the <$reveal> widget to display a "faux" checkbox that *appears* to 
be either checked or unchecked depending on whether the tiddler you're 
adding to the list has a certain tag (isTiddlerInFormatList) with a value 
set to yes.  "Checking" the box sets that field and adds the referenced 
tiddler to the list field of that FormatList tiddler.  "Unchecking" it 
empties the isTiddlerInFormatList field and removes the referenced tiddler 
from that list field.  (Tick the button on the test tiddler and check the 
fields on the other tiddlers to see how it works — and if that works out 
for your larger project.)

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/1516f14b-6a44-44f8-8e21-24c10856cbe4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to