I have a 'task' tiddler that displays checkboxes to indicate the priority 
of the task:

<$checkbox tag="high-priority"> High Priority</$checkbox>

<$checkbox tag="low-priority"> Low Priority</$checkbox>

I would like it so that if I check one of the boxes the other will be 
unchecked.

I have tried using the checkactions attribute as follows:

\define uncheck-high-priority() <$action-sendmessage $message=
"tm-remove-tag" $param="high-priority"/>
\define uncheck-low-priority() <$action-sendmessage $message="tm-remove-tag" 
$param="low-priority"/>

<$checkbox tag="high-priority" checkactions=<<uncheck-low-priority>>> High 
Priority</$checkbox>

<$checkbox tag="low-priority" checkactions=<<uncheck-high-priority>>> Low 
Priority</$checkbox>

Weirdly this works as expected when I try it in the preview pane while 
editing the tiddler, but when I save the tiddler it ceases to work.

Does anyone know what's going on here?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5d6a11a6-1841-4dc3-a272-5777a209a537%40googlegroups.com.

Reply via email to