Fieldtype, Module

Developer
Supported

eeXam

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Coffee Bean Design

     

You must be logged in to post.

Show correct anwser to the question

Support Request

bfjare
bfjare

We are using this more for training then an actual test service.  Since thats the case we want to give people the answer to some questions right after they are answered.  We don’t care if they change them.

Here is what I am trying to do.

{test_field }
    
<fieldset class="eexam-question">
        <
label>{label} </label>
        
{field}
        {if type 
== 'truefalse'}
            
<div class="anwser" style="display:none">{correct_answer}</div>
        
{/if}
    
</fieldset>
{/test_field } 

Basically I am looking to hide the anwser then show it using javascript once the true false question is anwsered.

Any help would be appreciated.

Coffee Bean Design
# 1
Developer
Coffee Bean Design

Hi there,

There is an undocumented variable on some field types {correct_answer_text}  That should be what you need for the true/false questions.

bfjare
# 2
bfjare

You my friend remind me of a morning sunrise!  Thanks so much.