I don't think your original problem necessarily had anything to do with <<qualify>>. It was probably the "popup" option on the button. That option meant that you could click anywhere and the state tiddler would flip.
However, there may have been a problem with the qualify and the concatenation with the heading parameter. The line had three $ symbols and may have parsed it incorrectly. There's a new syntax for parameters $(__parameter__)$ which I've never had a real reason to use before, but it came in handy in this case. Here's the revised version of the original macro (which uses a heading and text, but you could modify as needed) : \define fold(heading, text) <$set name="controller" value=<<qualify """$:/state/section$(__heading__)$""">> > <$reveal type="match" state=<<controller>> text=""> <$button class="tc-btn-invisible" set=<<controller>> setTo="hide"> $heading$ </$button> $text$ </$reveal> <$reveal type="nomatch" state=<<controller>> text=""> <$button class="tc-btn-invisible" set=<<controller>> setTo=""> $heading$ </$button> </$reveal> </$set> \end On Saturday, October 5, 2019 at 1:15:24 PM UTC-7, Rick Yagodich wrote: > > Thanks Mark S. > > $(currentTiddler)$ simplified my macro. > > It was the <<qualify>> macro's weird behaviour that caused me to hash > things out this way - see the Any idea how to collapse/expand section > within a tiddler > <https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/tiddlywiki/F9ACy0bQc9w> > > thread. > > > -- 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/fd4d9403-00fc-4095-afc5-c56a8f3232b3%40googlegroups.com.

