> I have tiddlers [1] with formTemplates in them. There are checkboxes
> and depending on the value of these, i would like to determine the
> navigation route the reader takes though the TW.
> Depending on the score in the check boxes, the nextTiddler would be
> different. I would then put a script with a button at the bottom of
> each question Tiddler
Something like this should do it...
<script label="next">
var score=...; /* calc score from checkboxes */
var here=story.findContainingTiddler(place);
story.displayTiddler(here, score<3 ? 'Q2' : 'Q5');
story.closeTiddler(here.getAttribute("tiddler")); /* close self */
return false;
</script>
enjoy,
-e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---