Can't you just have the two boxes share the same field, but with opposite inputs. e.g.
L <$checkbox field=status checked="L" unchecked="R"/> R <$checkbox field=status checked="R" unchecked="L"/> Seems to work (after the first click to set up the field). -- Mark On Sunday, June 24, 2018 at 8:55:43 PM UTC-7, Dave wrote: > > I'm trying to make a macro that presents a pair of checkboxes like this: > R[[_]] [[_]]L. > > I can get the checkboxes to assign 1 for checked and 0 for unchecked, but > I'd like to be able to cause the Right checkbox to automatically uncheck > when the Left one checks and vice versa. > > Here's what I have that's not working: > > \define nullr(testname) > <$action-setfield $tiddler=<<currentTiddler>> $field="$testname$.right" > $value="0" /> > \end > \define nulll(testname) > <$action-setfield $tiddler=<<currentTiddler>> $field="$testname$.left" > $value="0" /> > \end > > > \define rorlcheck(testname) > R<$checkbox tiddler="""$(currentTiddler)$""" field="$testname$.right" > checked="1" unchecked="0" actions="<<nulll '$testname$'>>" >L<$checkbox > tiddler="""$(currentTiddler)$""" field="$testname$.left" checked="1" > unchecked="0" actions="<<nullr '$testname$'>>"> > \end > > <<rorlcheck test>> > > > Can anyone tell me how to make this work? > > Thank you, > Dave > > > P.S. I've also tried it with """$(currentTiddler)$""" in the null macros > -- 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/6a23052c-6be6-465e-ac6a-2b7b0f123a11%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.