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>