Knowing that it was possible gave me the fortitude to continue with my 
trial-and-error flailing!
I still don't quite understand the pattern for which macro to use first and 
when to add which message where, but in case it's helpful for someone else, 
here's my working solution to accomplish the following with a single button:
1. set a field
2. set another field
3. add one tag
4. remove another

<$setfield set="!!field1" setTo="value1">
<$setfield set="!!field2" setTo="value2">
<$mangletags find="oldtag" message="tw-set-field">
<$mangletags add="newtag">
<$button message="tw-mangle-tags">button text here</$button>
</$mangletags></$mangletags></$setfield></$setfield>

(I haven't included a target because I put this in a tiddler called 
MyButton and then use it inside other tiddlers, e.g., {{!!title||MyButton}} 
)

This is really helpful - thanks!
cmari

On Tuesday, June 3, 2014 8:42:20 AM UTC-7, Matabele wrote:
>
> Hi cmari
>
> Yes -- using the <$setfield> and <$mangletags> widgets available here: 
> http://gwiz.tiddlyspot.com/
>
> <$mangletags find="tag-to-remove">
> <$setfield set="!!field-to-set" setTo="value-for-field" 
> message="tw-mangle-tags">
> <$button message="tw-set-field" param="target-tiddler">Set</$button>
> </$setfield></$mangletags>
>
> Have a look at the Demos on the site -- the code should give you some 
> ideas on how to use the widgets. The 'Another Demo', in particular, does 
> something similar to your needs.
>
>
> On Tuesday, June 3, 2014 5:26:24 PM UTC+2, cmari wrote:
>>
>> Thanks for creating widgets to do exactly what I'd been puzzling over!  
>> One thing I still can't figure out: Is is possible to create a single 
>> button that simultaneously:
>> 1. sets field info AND
>> 2. removes a (specified) tag?
>> Thanks!
>> cmari
>>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to