Hello,

is there a possibility to set up "multiple answers" ? Now, even if in my csv there are more correct answers, the imported questions are shown with radio-buttons and it's not possible to choose more than one...

Thank you

regards

Adriana

Comments

Sivaji_Ganesh_Jojodae’s picture

We had some weird problem with Multiple answer questions import. Below is the workaround, hope this will help

After line 221 $node->alternatives = $alternatives;. Add the following lines

node_save($node);
$node = node_load($node->nid);
if (count(explode(',', $correct_choices)) > 1) {
  $node->choice_multi = 1;
}
mikolaskova’s picture

thank you very much! it works now.

Sivaji_Ganesh_Jojodae’s picture

Status: Active » Closed (fixed)

I am glad it was helpful to you.