Hi Mans

The radio 'button' reports on the value of a field -- it is checked if the 
value matches and unchecked if it does not. This behaviour is not 
compatible with a radio 'button' that sets the value of multiple fields.

I'm not sure what the best avenue is to take with this king of use case -- 
my current idea is to create a widget that sends one widget message upon 
being checked and another upon being unchecked. This would allow several 
fields to be toggled between two values using two stacks of <$setfield> 
widgets around a button. 

I think the usage I had in mind differed -- this was to list a number of 
tiddlers according to some filter expression, then toggle the value of a 
field between two values for all tiddlers in the list.

I don't know if either of these tactics (or some other tactic) is best 
suited to your needs.

regards 

On Friday, June 20, 2014 1:00:07 AM UTC+2, Måns wrote:
>
> Hi Matabele
>
>
> Does  Setfield widget work with radiobuttons?
>
> I tried this to no avail:
>
> <$setfield set="!!gender2c" setTo="Han">
> <$setfield set="!!gender2" setTo="han">
> <$setfield set="!!genderc" setTo="Ham">
> <$radio field="gender" value="ham"> dreng</$radio>
> </$setfield></$setfield></$setfield>
>
> <$setfield set="!!gender2c" setTo="Hun">
> <$setfield set="!!gender2" setTo="hun">
> <$setfield set="!!genderc" setTo="Hendes">
> <$radio field="gender" value="hende"> pige</$radio>
> </$setfield></$setfield></$setfield>
>
> I think it would be very nice if the widget did work with radio buttons 
> and even checkmarks.
>
> Cheers Måns Mårtensson
>

-- 
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