On Monday, January 11, 2016 at 2:02:30 AM UTC-5, Matabele wrote: I think something like this will do the trick: > > <$reveal type="match" state="!!fake" text="nope"> > <$button set="!!fake" setTo="yep" class="tc-btn-invisible"> > <$action-setfield checkedtime=<<now "YYYY-0MM-0DD hh:mm:ss">> /> > <$action-listops $tags="[[tag me tagged]]"/> > <input type="checkbox">Check me! > </$button> > </$reveal> > <$reveal type="match" state="!!fake" text="yep"> > <$button set="!!fake" setTo="nope" class="tc-btn-invisible"> > <$action-setfield checkedtime=""/> > <$action-listops $tags="-[[tag me tagged]]"/> > <input type="checkbox" checked="true">UnCheck me! > </$button> > </$reveal> > > {{!!checkedtime}} > > A bit long winded -- but can't see any shortcuts. > > regards > > On Monday, 11 January 2016 07:36:55 UTC+2, Scott Simmons (Secret-HQ) wrote: >> >> >> On Sunday, January 10, 2016 at 9:36:53 PM UTC-5, Matabele wrote: >> >> >>> The value in 'checkedtime' toggles as expected, however the checkbox's >>> have no effect? >>> >> >> Hmmmm. I could've sworn I had that working last night. (And, like a >> bonehead, I've already cleared my backups and can't find the one where I >> thought it worked.) >> >> Maybe I had the <$button> macro as a child of <$checkbox> rather than the >> other way around? That toggles the tag on and off: >> >> <$reveal type="match" state="!!fakeCheckboxChecked" text="nope"> >> <$checkbox tag="tag me tagged"> >> <$button set="!!fakeCheckboxChecked" setTo="yep" class="tc-btn-invisible"> >> <$action-setfield checkedtime=<<now "YYYY-0MM-0DD 0hh:0mm:0ss">> /> >> Check me! >> </$button> >> </$checkbox> >> </$reveal> >> > Thanks, Matabele! That *does* the trick in TiddlyWiki 5.1.10, all right!
In 5.1.9 (where I'd been playing around with this), it looks like the <$action-listops> macro isn't part of the core. Just FYI, I tried using <$action-sendmessage> with tm-add-tag and tm-remove-tag, to no avail. Clearly I'm misunderstanding/misusing that widget ... . <$reveal type="match" state="!!fakecheckboxchecked" text="nope"> <$button set="!!fakecheckboxchecked" setTo="yep" class="tc-btn-invisible"> <$action-setfield checkedtime=<<now "YYYY-0MM-0DD 0hh:0mm:0ss">> /> <$action-sendmessage $message="tm-add-tag" param="tag me tagged" /> <input type="checkbox" />Check me! </$button> </$reveal> <$reveal type="match" state="!!fakecheckboxchecked" text="yep"> <$button set="!!fakecheckboxchecked" setTo="nope" class="tc-btn-invisible"> <$action-setfield checkedtime="" /> <$action-sendmessage $message="tm-remove-tag" param="tag me tagged" /> <input type="checkbox" checked />Uncheck me! </$button> </$reveal> Thanks again for taking time to educate me on <$action-listops>! -- 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/6cfaa60d-d3e4-4b9e-8406-f4fd7e32d974%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.