Hello!
I'm try to make a simple avaliation form using a macro to create radios for
awnser and <$reveal> to show the correct awnser for the student.
But dont work.
My code:
\define q(quest: "q1" awnser: "b")
"""
<$radio field="$:/state/q/$quest$" value="a">A</$radio>
<$radio field="$:/state/q/$quest$" value="b">B</$radio>
<$radio field="$:/state/q/$quest$" value="c">C</$radio>
<$radio field="$:/state/q/$quest$" value="d">D</$radio>
<$radio field="$:/state/q/$quest$" value="e">E</$radio>
"""
debug: quest: ''$quest$''; correctAwnser: ''$awnser$''; awnser: ''{{!!$:
/state/q/$quest$}}''
<$reveal type="match" state="$:/state/q/$quest$" text=$awnser$>
CORRECT!!
</$reveal>
<$reveal type="nomatch" state="$:/state/q/$quest$" text=$awnser$>
WRONG!!
</$reveal>
\end
I call my macro:
<<q "q1" "c">>
The <$reveal> dont match anything. Always WRONG
plz helpme
p.s: exists a better form to do this?
tks a lot
--
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 [email protected].
To post to this group, send email to [email protected].
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/55e03567-50b0-44df-87f0-15a69cf1a9dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.