[tw] Re: How do I create two fields at once with one radio button?

2016-06-11 Thread Måns
Hi Matabele

Thanks a lot :-)

I had to set it up with three states one with text="" another with 
text="female" and a third with text="male".
You are absolutely right in assuming that type="radio works,
It's a great hack :-)

Cheers Måns

Den lørdag den 11. juni 2016 kl. 07.04.28 UTC+2 skrev Matabele:
>
> Hi Mans
>
> Here's code fro a fake checkbox:
> -- set (can have multiple action widgets)
> <$reveal type="match" state="!!temp" text="set">
> <$button set="!!temp" setTo="reset" class='tc-btn-invisible'>
> <$action-listops $tiddler="test" $field="myfield" $filter="[my[filter]"/>
> ...
> SetSet
>
>  
> -- reset
> <$reveal type="match" state="!!temp" text="reset">
> <$button set="!!temp" setTo="set" class='tc-btn-invisible'>
> <$action-listops $tiddler="test" $field="myfield" $filter="[[]]"/>
> ...
> ResetReset
>
> This may be modified to make a fake radio button -- 'input type = radio', 
> as far as I recall
>
> regards
>
> On Friday, 10 June 2016 16:19:01 UTC+2, Måns wrote:
>>
>> Hi Mat
>>
>> Thank you. 
>> Please enlighten me :-)
>> Has anyone done this yet?
>> I've searched for "make a button look like a radio button" and "make a 
>> button behave like a radio button ".
>> No luck - or the information is hidden in some profound discussion about 
>> how to do something completely different?
>>
>> Cheers Måns Mårtensson
>>
>> Den fredag den 10. juni 2016 kl. 15.46.59 UTC+2 skrev Mat:
>>>
>>> Måns, great to see you on the boards again.
>>>
>>> In case it hasn't been mentioned; you can make a regular button *look *like 
>>> a radio button (even just use images) and within that regular button you 
>>> can have two setfield widgets. It would take you less than 10 minutes to 
>>> make.
>>>
>>> <:-)
>>>
>>

-- 
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/b1b7b0c2-aeac-481b-9f51-ceded58ef494%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How do I create two fields at once with one radio button?

2016-06-10 Thread Matabele
Hi Mans

Here's code fro a fake checkbox:
-- set (can have multiple action widgets)
<$reveal type="match" state="!!temp" text="set">
<$button set="!!temp" setTo="reset" class='tc-btn-invisible'>
<$action-listops $tiddler="test" $field="myfield" $filter="[my[filter]"/>
...
SetSet

 
-- reset
<$reveal type="match" state="!!temp" text="reset">
<$button set="!!temp" setTo="set" class='tc-btn-invisible'>
<$action-listops $tiddler="test" $field="myfield" $filter="[[]]"/>
...
ResetReset

This may be modified to make a fake radio button -- 'input type = radio', 
as far as I recall

regards

On Friday, 10 June 2016 16:19:01 UTC+2, Måns wrote:
>
> Hi Mat
>
> Thank you. 
> Please enlighten me :-)
> Has anyone done this yet?
> I've searched for "make a button look like a radio button" and "make a 
> button behave like a radio button ".
> No luck - or the information is hidden in some profound discussion about 
> how to do something completely different?
>
> Cheers Måns Mårtensson
>
> Den fredag den 10. juni 2016 kl. 15.46.59 UTC+2 skrev Mat:
>>
>> Måns, great to see you on the boards again.
>>
>> In case it hasn't been mentioned; you can make a regular button *look *like 
>> a radio button (even just use images) and within that regular button you 
>> can have two setfield widgets. It would take you less than 10 minutes to 
>> make.
>>
>> <:-)
>>
>

-- 
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/41e67c5f-3640-4cdb-9094-4490f36f7125%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How do I create two fields at once with one radio button?

2016-06-10 Thread BJ

maybe it was Eric's reply in this thread;
https://groups.google.com/forum/#!searchin/tiddlywiki/eric$20shulman|sort:date/tiddlywiki/O82ak2g0XO8/-gXtK_yANgAJ

On Friday, June 10, 2016 at 3:19:01 PM UTC+1, Måns wrote:
>
> Hi Mat
>
> Thank you. 
> Please enlighten me :-)
> Has anyone done this yet?
> I've searched for "make a button look like a radio button" and "make a 
> button behave like a radio button ".
> No luck - or the information is hidden in some profound discussion about 
> how to do something completely different?
>
> Cheers Måns Mårtensson
>
> Den fredag den 10. juni 2016 kl. 15.46.59 UTC+2 skrev Mat:
>>
>> Måns, great to see you on the boards again.
>>
>> In case it hasn't been mentioned; you can make a regular button *look *like 
>> a radio button (even just use images) and within that regular button you 
>> can have two setfield widgets. It would take you less than 10 minutes to 
>> make.
>>
>> <:-)
>>
>

-- 
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/e96380f2-9486-43ff-8bb6-c40ab6ade1a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How do I create two fields at once with one radio button?

2016-06-10 Thread Mat
<$button class="tc-btn-invisible" >
⦿ ⦾ ⌾ ◉


<:-)

-- 
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/d0b03bc4-6d81-4fa9-bcaf-d29c71f59a0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How do I create two fields at once with one radio button?

2016-06-10 Thread Måns
Hi Mat

Thank you. 
Please enlighten me :-)
Has anyone done this yet?
I've searched for "make a button look like a radio button" and "make a 
button behave like a radio button ".
No luck - or the information is hidden in some profound discussion about 
how to do something completely different?

Cheers Måns Mårtensson

Den fredag den 10. juni 2016 kl. 15.46.59 UTC+2 skrev Mat:
>
> Måns, great to see you on the boards again.
>
> In case it hasn't been mentioned; you can make a regular button *look *like 
> a radio button (even just use images) and within that regular button you 
> can have two setfield widgets. It would take you less than 10 minutes to 
> make.
>
> <:-)
>

-- 
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/27d35836-c357-4943-953b-18ccaca7c39e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How do I create two fields at once with one radio button?

2016-06-10 Thread Mat
Måns, great to see you on the boards again.

In case it hasn't been mentioned; you can make a regular button *look *like 
a radio button (even just use images) and within that regular button you 
can have two setfield widgets. It would take you less than 10 minutes to 
make.

<:-)

-- 
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/fb955627-1a81-4301-ab2a-1c8db25fc35c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How do I create two fields at once with one radio button?

2016-06-10 Thread Måns
Hi again

I need to be able to toggle a gender field in a "student card". Male or 
female - and I need to setup a way for my users (collegues) to create 
sentences where they can add up to 4 variations of gender i.e.: 
"Gender is a good student". or: 
"When gender is doing gender's homework, gender is " (in Danish there 
is no difference when spelling he or hi(s)) 
I need variations on gender like: he, He, him and Him - she, She, her and 
Her.

I guess that a solution might be to let the radio button toggle between m 
and w for !!gender and create a data dictionary tiddler which has the 
variations like this:
KODE: VÆLG ALT 
m1:he
m2:He
m3:him
m4:Himm5:hism6.His
k1:she
k2:She
k3:her
k4:Her


Next step might be to create a macrotemplate titled: "mw", which 
concatenates different parts like this: 
\define mw(var)
{{!!gender}}$var$##DataDictionaryTiddlerName
\end
<$ macrocall name="mw" var="1"/>

Usage: <> or just {{mw}} for he or she and <> for He or She and 
<> for him or her and <> for Him or Her (the 5'th variation 
isn't needed in Danish...)

Does this seem to be a good solution? - is it even possible?

Cheers Måns Mårtensson

Den fredag den 10. juni 2016 kl. 11.03.18 UTC+2 skrev Måns:
>
> Thank you very much Birthe :-)
>
> I had completely forgotten that I asked this question a long time ago - 
> and that Matabele gave me a great solution using data sets...
> Sorry Matabele ... and thank you both .).
>
> Cheers Måns Mårtensson
>
> Den fredag den 10. juni 2016 kl. 00.39.34 UTC+2 skrev Birthe C:
>>
>> Hi Måns,
>>
>> https://groups.google.com/d/msg/tiddlywiki/z-86V2W3r_0/kK4juLdop10J
>>
>>
>> Birthe
>>
>> On Friday, June 10, 2016 at 12:05:43 AM UTC+2, Måns wrote:
>>>
>>> Hi TwWizards
>>>
>>> With this code I can create one field with a radio button:
>>>
>>> <$radio field="gender" value="him"> male
>>>
>>>
>>> How do I make it create two fields at once?
>>>
>>> This doesn't work:
>>>
>>> <$radio field="gender" value="he" field="gender2" value="him"> male
>>>
>>>
>>> I remember that @matabele made a couple of plugins that would enable 
>>> creating a lot of things all at once - but I don't think it worked with 
>>> radio buttons.
>>> Please correct med if I'm wrong.
>>>
>>> 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 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/0f58e66e-bb42-4f22-86b2-d98d3e23d0ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How do I create two fields at once with one radio button?

2016-06-10 Thread Måns
Thank you very much Birthe :-)

I had completely forgotten that I asked this question a long time ago - and 
that Matabele gave me a great solution using data sets...
Sorry Matabele ... and thank you both .).

Cheers Måns Mårtensson

Den fredag den 10. juni 2016 kl. 00.39.34 UTC+2 skrev Birthe C:
>
> Hi Måns,
>
> https://groups.google.com/d/msg/tiddlywiki/z-86V2W3r_0/kK4juLdop10J
>
>
> Birthe
>
> On Friday, June 10, 2016 at 12:05:43 AM UTC+2, Måns wrote:
>>
>> Hi TwWizards
>>
>> With this code I can create one field with a radio button:
>>
>> <$radio field="gender" value="him"> male
>>
>>
>> How do I make it create two fields at once?
>>
>> This doesn't work:
>>
>> <$radio field="gender" value="he" field="gender2" value="him"> male
>>
>>
>> I remember that @matabele made a couple of plugins that would enable 
>> creating a lot of things all at once - but I don't think it worked with 
>> radio buttons.
>> Please correct med if I'm wrong.
>>
>> 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 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/ff98bc75-eb35-4ea5-85cf-c5c4ef5380eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How do I create two fields at once with one radio button?

2016-06-09 Thread 'Birthe C' via TiddlyWiki
Hi Måns,

https://groups.google.com/d/msg/tiddlywiki/z-86V2W3r_0/kK4juLdop10J


Birthe

On Friday, June 10, 2016 at 12:05:43 AM UTC+2, Måns wrote:
>
> Hi TwWizards
>
> With this code I can create one field with a radio button:
>
> <$radio field="gender" value="him"> male
>
>
> How do I make it create two fields at once?
>
> This doesn't work:
>
> <$radio field="gender" value="he" field="gender2" value="him"> male
>
>
> I remember that @matabele made a couple of plugins that would enable 
> creating a lot of things all at once - but I don't think it worked with 
> radio buttons.
> Please correct med if I'm wrong.
>
> 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 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/c9d9b3d1-a2b2-424f-8ea4-a53e5da04eec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.