Jump to content

Topic on Extension talk:Survey

Writable answers doesn't submit

5
91.99.151.148 (talkcontribs)

I installed this extension on mediawiki 1.21 It does not work if use text-type answers, whatever you write it will be empty in stats

188.245.43.223 (talkcontribs)

Oh sorry that was a mistake

76.118.31.113 (talkcontribs)

Actually I second this. Is there a way to view what a user has typed into the text fields without using the API?

216.17.230.105 (talkcontribs)

I'm seeing the same thing. The input from the survey text-box is placed in the survey_answers table answer_text column correctly and I can view it with a SQL query on the database, but when viewing the statistics of the survey via the Special:SurveyStats article, the results of the text-box answer are not displayed. I tried dropping the table and recreating it with VARCHAR and TEXT data types for answer_text, but that didn't work either. All the other survey answer types display correctly, just not any single or multi-line text box answers.

Here's my config: MediaWiki 1.23.0 PHP 5.5.9-1ubuntu4.3 (apache2handler) MySQL 5.5.38-0ubuntu0.14.04.1

James.henry (talkcontribs)

I suspect that the issue is in the SpecialSurveyStats page in the

protected function getAnswerList( SurveyQuestion $question ) function. I think that the text answers are not evaluating true in this line:     if ( $question->isRestrictiveType() )

The 'else' statement there is to simply return an empty character.

Reply to "Writable answers doesn't submit"