General developer forum

mdl_question_attempt_step_data table value field

 
Picture of Carlos H Bolaños
mdl_question_attempt_step_data table value field
 

when the field name = answer; the field value = 0 or 1 or 2 or 3.

where do you get those of value (0 or 1 or 2 or 3) ???


Moodle 3.3


 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: mdl_question_attempt_step_data table value field
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

You need to look at the step with the same questionattemptid, sequencenumber 0. For that step, find the attempt_step_data with name = '_order'. (E.g. '18,19,20,21') For that question attempt, 0 is 18, 1 is 19 etc. Where 18, 19 are ids in the question_answers table. (This is a multiple choice question For other question types, the answer is different.)

 
Average of ratings: -