Hi The full code for a fake checkbox is then:
<$reveal type="match" state="!!temp" text="set"> <$button set="!!temp" setTo="reset" class='tc-btn-invisible'> <$action-listops $tiddler="test" $field="myfield" $filter="[nazvanie[test]]"/> <input type=checkbox/>Set</$button></$reveal> <$reveal type="match" state="!!temp" text="reset"> <$button set="!!temp" setTo="set" class='tc-btn-invisible'> <$action-listops $tiddler="test" $field="myfield" $filter="[[]]"/> <input type=checkbox checked/>Reset</$button></$reveal> -- the value of the !!temp field will need initialising with "set" regards On Monday, 18 January 2016 12:48:13 UTC+2, sini-Kit wrote: > > Hi! I try to understand how to work with ListopsWidget . I try to find > all tidders with field nazvane:test (I have 3) and put their titles to > field "myfield" in test tiddler. > > here is my code > > <$reveal type='nomatch' state='$:/state/someuniquenameforthisstuff' > text='checked'> > <$button class='tc-btn-invisible'>☐ Is it done? > <$list filter='[nazvanie[test]]'> > <$action-listops $tiddler="test" $field="myfield" > $subfilter=<<currentTiddler>>/> > </$list> > <$action-setfield $tiddler='$:/state/someuniquenameforthisstuff' > text=checked/> > </$button> > </$reveal> > <$reveal type='match' state='$:/state/someuniquenameforthisstuff' > text='checked'> > <$button class='tc-btn-invisible'>☑ Is it done? > <$list filter='[nazvanie[test]]'> > <$action-listops $tiddler="test" $field="myfield" > $subfilter="+-<<currentTiddler>>"/> > </$list> > <$action-setfield $tiddler='$:/state/someuniquenameforthisstuff' > text=unchecked/> > </$button> > </$reveal> > > <$view tiddler="test" field="myfield"/> > > it works, but it don't add [[to titles with space]] and it don't work > with -<<currentTiddler>> I try with "", but I didn't help. > > here is my experiment > ttp://novye-podarki.ru/empty10_.html#2016-01-18%2012%3A23%3A18 > <http://novye-podarki.ru/empty10_.html#2016-01-18%2012%3A23%3A18> > > how can I modify my code to make it work in a proper way? > > -- 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 post to this group, send email to [email protected]. 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/3e2f02be-0a8b-43c7-b078-44743943d76c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

