ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

dynamic variables

August 29, 2007 2:33pm

Subscribe [1]
  • #1 / Aug 29, 2007 2:33pm

    ITCC

    32 posts

    I am experimenting a question and answer quiz section.  There is a weblog field for “question”, “answer one” and “answer two”.  There is also a field where you specify with a drop down menu which “answer” is the correct one.

    When the template is rendered in a browser, the two answer choices appear as links.  They each link to another template that (ideally) displays a message when the correct choice is selected and displays a different message when the incorrect choice is selected.

    With the correct answer field, the browser knows the value of the correct field.  Is there a way to define a variable whose value can reflect which “answer” link was chosen by the user?  Ideally, with this achieved, I can tell the subsequent template which message to display.  Thus, I would only need one template for post-answer-selection display.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases