I am attempting to disable the spell check on the answer field for Short Answer quizzes but I am unable to.

I attempted to create a hook_alter_forum using the form id "quiz_question_answering_form" (found out when inspecting element while taking the quiz) and "answer" as the machine name for the field.
Is that incorrect?

What steps should be taken to properly complete this?

I attempted the solutions that were suggested to me when I asked for help on the Drupal Stack Exchange
http://drupal.stackexchange.com/questions/217152/how-to-add-attributes-t...

Comments

andrewmriv created an issue. See original summary.

andrewmriv’s picture

Title: How to Add Attributes to Short Answer Field » How to Add Attributes to the Answer field of a Short Answer Field
djdevin’s picture

No, that's correct. Using hook_form_alter, you can modify the question's answer form elements.

The question's answer form would be stored in $form['question'][$question_id]['answer']

$form['question'] is an array of all the questions if you are showing a page of questions.

djdevin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.