[LON-CAPA-users] making survey response a parameter in other questions

Guy Albertelli II lon-capa-users@mail.lon-capa.org
Fri, 26 May 2006 13:24:57 -0400 (EDT)

Hi Ray,

> I'm making an assignment in which the first question is a simple survey 
> (radiobuttonresponse).
> I want to use the result of the survey question to select parameters used in 
> subsequent questions.
> I am proposing to put all the questions for the assignment into a published 
> sequence and use the advanced RAT to set a map alias for this survey 
> question.
> I then hope to be able to grab 
> the submission for that question for use in the perl script of subsequent 
> problems in the sequence using:
> user.resource.resource.0.11.submission
> I'm going to restrict the initial survey to maxtries=1 and make the questions 
> appear one at a time, so that a student will not be able to change the 
> versions of the questions they get ,by changing their survey response.
> I am assuming that it is best (if not absolutely required) that all these 
> questions be in the same published sequence.

Yes. (That way the mapalias will be set when they get used.)

> Unfortunately, I guess I will have to publish the sequence and import it into 
> a course before I check whether or not this all works according to plan.  
> Perhaps I should have a default which takes effect if the survey submission 
> result is nul?

You may want the problems to have an <instructorcomment> that make's
sure that they are using these in the correct context? (That the
mapalias is set and exists..)

guy@albertelli.com   0-7-1-8-27,137