Hi Mohammad, can you expand a bit about the list you want to see? is this just when you click the button? One issue is that the setfield will replace the example1 tag with tag1. Did you mean to show the list only after the change happened, or did you mean to *add *tag1 to the tiddlers that also have example1? If you want to add a tag, you would be better off using the <$action-listops $tags="tag1"/> instead of <$action-setfield tags="tag1"/> This will get you part way there...
<$button>refresh list and add tag 1 <!-- clear the field --> <$action-listops $field="myfield" $filter="[[]]"/> <!-- populate the field --> <$list filter="[tag[example1]] [tag[example2]] [tag[example3]]" variable="lister"> <$action-listops $field="myfield" $subfilter="[enlist<lister>]"/> </$list> <!-- add tag1 --> <$list filter="[tag[example1]]"> <$action-listops $tags="tag1"/> </$list> </$button> <!-- display the field --> <$list filter="[list[!!myfield]]"> </$list> On Sunday, 25 July 2021 at 20:28:30 UTC-4 [email protected] wrote: > > Hi , > > is it possible to assign an action to a button that would affect some but > not all tiddlers listed in a filter > > so for example, i want to add "tag1" to all tiddlers tagged with "example1" > > <$button> add tag 1 > <$list filter="[tag[example1]]" > > <$action-setfield tags="tag1"/> > </$list> > </$button> > > but i also want to see all tiddlers tagged with "example1", "example2" > and "example3".. > > i can modify the filter to add all tiddlers tagged with "example1" , > "example2", "example3", ... but then if i click the button the action will > affect all tiddlers , so is there way to set an action against some > tiddlers meeting a certain criteria while keeping other tiddlers that > don't not matching the criteria on display? > -- 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/37a5117e-8982-4c60-8020-75cd9bcc0406n%40googlegroups.com.

