I know I can use the <$checkbox> macro to write a value to a field — but 
can I use it to write *multiple* values to *multiple* fields (of the same 
tiddler)?

For example, can I check a checkbox and have it set (say) *status* = *done* 
*AND* *completed* = *<<now>>*?

Maybe by defining macros:

\define setFieldsDone()
<$action-setfield completed=<<now "YYYY-0MM-0DD hh:mm:ss">> />
<$action-setfield completedon=<<now "YYYY-0MM-0DD">> />
\end


\define setFieldsUndone()
<$action-setfield completed="" />
<$action-setfield completedon="" />
\end

... and then calling them with something like:

<$checkbox checked=<<setFieldsDone>> unchecked=<<setFieldsUndone>>>click me 
to mark this task done</$checkbox>

That code won't work, of course — but am I barking up the right tree?

-- 
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/5de44d22-f3a7-48ff-8e97-4534eb5639d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to