You need to create a two button system where one only shows if the other 
does not.

Actually I have being through a few repetitions to develop this method;

here is an example ripped from my current work.
\define ea-toggle()
<$list filter="[is[current]has[view-caption]">
<$list filter="[is[current]!edit-view-caption[yes]]">
<$button set="!!edit-view-caption" setTo="yes" class="tc-btn-invisible">
<$list filter="[is[current]edit-view-caption[yes]]">
<$button set="!!edit-view-caption" setTo="no" tooltip="save and set 
view-caption" class="tc-btn-invisible">

Notice how the filter to display each button is a simple negation of the 
other, and the !edit-view-caption[yes]]
Helps deal with the state field not existing in addition to the no state.

Of course you could use two checked and unchecked icons but the checkbox 
widget does that well.

I trick I found recently was to use a special character rather than an 
icon and allow the selected state to 
simply underline the character.
eg ☏ and *☏*


On Friday, 10 August 2018 16:51:29 UTC+10, Mohammad wrote:
> I want to use the checkbox widget for toggling a field on/off or true/false
> link:
> How can I have a custom button (or custom graphics) instead of simple 
> checkbox icon?
> There is a macro developed by Mat:  can do 
> this but I want to do this with TW checkbox included in the core!
> Is there any solution to do that?
> Note I want to use it to simple toggle a field on/off! Standard button 
> cannot simply do that!
> *Mohammad*

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 post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

Reply via email to