Try: sams_club_section=<<thisSection>>
This is the synax for referring to variables and macros, the $name$ syntax only works inside of macros for text subsitution. On Friday, April 3, 2020 at 7:42:28 PM UTC+2, David wrote: > > This code shows my shopping items and whether I've gotten them yet or > not. It lists everything grouped in sections. > > At the bottom of each section, I want a "New" button that opens a new > tiddler. This is working. > > But I'd love to pre-fill that "sams_club_section" field with the current > section, which is stored in the "thisSection" variable. > > The dollar before and after syntax, as shown below, in the $button code, > is not right. I've tried a few others. I'm sure you guys know how to do > it. > > <$list filter="[list[$:/.my/data/Shopping/SamsClubSections]]" > variable="thisSection"> > > !! <<thisSection>> > > <$list > filter="[<thisSection>listed[sams_club_section]tag[ShoppingItem]tag[ToGet]]" > variable="item"> > <$checkbox tiddler=<<item>> tag="Selected"/> <<item>><br/> > </$list> > > <$button> > <$action-sendmessage $message="tm-new-tiddler" > title="" > tags="ShoppingItem SamsClub" > sams_club_section="$thisSection$" > /> > New > </$button> > > </$list> > > > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5d48259b-5627-49b6-9b01-ffaf99af6096%40googlegroups.com.

