simple avaliation form

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 m
<<q "q1" "c">>

-- 
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/798e522b-3e9d-45c5-b48a-ec066a22f76a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to