FAQ
 
Products Showcase Download Store Support
Home :: Support :: Community :: CourseLab Issues

Re: Re: (2) (1) Calculate scores without using Question or Test objects

Re: Re: (2) (1) Calculate scores without using Question or Test objects 
Author:  barend
Date: 03.07.2010 12:19:24
A small contribution is the actions to get the value from the dropdown list.

I hop Nick can give the second part, compare the value to the score.

In a new document, 1 page, I put a dropdown element and gave it identifier q.
I made several items in the list:
Description - Value - Selected
make a choice - 0 - yes
choice 1 - 1 - no
choice 2 - 2 - no
choice 3 - 3 - no
The descriptions are important for your student; the values for the actions.

Then I put a button (object - form) on the stage, made it invisible and gave it identifier submit.

Then I put four textboxes on the stage, each one with the feedback. I gave them identifier u0, u1, u2, u3.
Contents:
u0: please make a choice and press 'submit'.
u1: you choose for '1'
u2: you choose for '2'
u2: you choose for '3'
I made all these four textboxes invisible.

On the dropdownlist I made action:
On Select Item
DISPLAY(Object='submit',Display='Show',Effect='Object',Duration='0')

On the submit button I made an action
IF(Condition='$q.value==0')
DISPLAY(Object='u0',Display='Show',Effect='Object',Duration='0')

and three more actions: if .. == 1 then display u1; 2 => 2 and 3 => 3.
Don't forgte the leading space in the line below the 'IF' statement, see another thread or Nick's site.

That's it.

Instead of using '$q.value' you might open the properties of the dropdown list and enter a Run-time variable name, I used ddVar.
Now the value is in a variable you can use in this page and if I remember well, in pages after this one.

The IF statements change in:
IF(Condition='#ddVar==0')
DISPLAY(Object='u0',Display='Show',Effect='Object',Duration='0')
etc.

Succes!  
...

Welcome to CourseLab Community! If you have any questions regarding CourseLab - please post it here in corresponding thread. If you cannot find the thread that exactly fit to your question - you can place New thread message. If such thread already exists - please post your question there. Threads are time slipping - last changed threads are always on the top of the threads list.

Total number of threads: 1684
Total number of comments: 6259
Filter by main thread topic:
Search for:  
 
v :)
Subject Author Date
 
Calculate scores without using Question or Test objects Amer Abdeen 30.06.10
 
Re: (1) Calculate scores without using Question or Test objects Nick James 30.06.10
 
Re: (2) (1) Calculate scores without using Question or Test objects Amer Abdeen 03.07.10
Re: (2) (2) (1) Calculate scores without using Question or Test objects barend 03.07.10
 
Re: (2) (2) (2) (1) Calculate scores without using Question or Test objects Amer Abdeen 06.07.10
 
Re: (2) (2) (2) (2) (1) Calculate scores without using Question or Test objects barend 07.07.10
 
Re: (2) (2) (2) (2) (2) (1) Calculate scores without using Question or Test objects Amer Abdeen 12.07.10
 
Re: (2) (2) (2) (2) (2) (2) (1) Calculate scores without using Question or Test objects barend 12.07.10
 
Re: (2) (2) (2) (2) (2) (2) (2) (1) Calculate scores without using Question or Test objects Nick James 13.07.10
 
Re: (2) (2) (2) (2) (2) (2) (2) (2) (1) Calculate scores without using Question or Test objects Amer Abdeen 13.07.10
 

Reply

You can also post this message as registered user. [Log in]
Author:
E-mail:
Subject:
Options:  Notify me if there is a new reply
Message emoticon:
Message body:
Insert smilie into text:
 
Jump to thread: