Users responses are not real

Users responses are not real

by Luís Rocha Graça -
Number of replies: 15

Hi there,

I've been experiencing some strange problems in the questionnaire module. I use it as survey for the classes quality. Several questions are in a 1-5 grade and I have been receiving calls from my students saying that they gave my teacher a grade 5, and the system recorded a grade 4, or a grade 3 and it recorded a grade 2. This has happened not once or twice, it happened several times with different students. Does anyone experience such problem?

Many thanks,

Luís

Average of ratings: -
In reply to Luís Rocha Graça

Re: Users responses are not real

by C Behan -

Hi Luís,


Could you share a screenshot of the question in editing mode?


Catherine

In reply to C Behan

Re: Users responses are not real

by Luís Rocha Graça -

Hi there Catherine,

Here's the screenshot of what happens and a screenshot of the question's edit mode.

Many thanks,

Luís



Attachment 2017-03-02 10_27_28-Relatório.png
Attachment question_edit_mode.png
In reply to Luís Rocha Graça

Re: Users responses are not real

by C Behan -

Hi Luís,


It looks like a styling issue and/or there is some extra html in there somewhere. 


There are 2 things that don't look right there:

  1. The buttons are not aligned with the column headings as there are less options than there are columns (see numbers in attached image) which results in the students clicking the wrong button.
  2. It looks like a table is inserted (see red box in attached image).

It might be worth temporarily changing your preferred editor to 'plain text' to see if there is extra html in your answers area. Maybe if you pasted from Word you inadvertently inserted a table?


Catherine

Attachment questionnaire.png
In reply to C Behan

Re: Users responses are not real

by Luís Rocha Graça -

Hi there Catherine,

I already checked the html and it's tottaly clean regarding to any table. Could this be a module bug?

Many thanks,

Luís

Attachment html.png
In reply to Luís Rocha Graça

Re: Users responses are not real

by Luís Rocha Graça -

Hi there Catherine,

I have been trying to debug this problem and still have no idea what is causing this. I'm almost certain that the last version of the module wasn't giving me this bug. Is there a way to roll back the module installation, I tried already to do that, but it returned me database issues.

Again, many thanks for your help.

Luís

In reply to Luís Rocha Graça

Re: Users responses are not real

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

Every choice looks like its shifted one space to the left. It looks like the lowest choice is actually in the question box.

What version of the questionnaire are you using? Are you using a standard theme? If not, can you try one of the standard themes?

In reply to Mike Churchward

Re: Users responses are not real

by Luís Rocha Graça -

Hi there Mike,


Thank you for the reply. Yes, indeed the student's answer is actually shifted to the left. I am using the last version of questionnaire, and this issue didn't happened in the last version. I tried already with the boost theme, and indeed the problem didn't persisted. I am using Gourmet theme from 3rd wave professional - link here

Can you give me some pointers in order to surpass this issue?

Many thanks,

Luís

In reply to Luís Rocha Graça

Re: Users responses are not real

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

Hi Luis -

You can get the exact version of questionnaire from your plugins overview page (https://[yoursite]/admin/plugins.php). Know that, will help with debugging.

It sounds like its something to do with the CSS from the theme you are using. Since it needs to be paid for, I can't try it here. If you know how, I would try looking at the CSS in a browser debugger and see if you can determine what's causing the shift.

mike

In reply to Mike Churchward

Re: Users responses are not real

by Luís Rocha Graça -

Hi Mike,

The questionnaire version is 3.2.1(build 2017020200).

I would much appreciate your precious help. To where should I send you de CSS code?

Again, thank you,

Luís

Attachment questionnaire_vers.png
In reply to Luís Rocha Graça

Re: Users responses are not real

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

I'm not much of a CSS guy...

I think, using the browser debug tools, you may be able to fiddle with it to try and figure out what is wrong. Beyond that, not sure what to recommend.

mike

In reply to Mike Churchward

Re: Users responses are not real

by Luís Rocha Graça -

Hi there Mike,

I've been troubleshooting the CSS with my IT colleague in order to find to problem and he said to me that the problem should be in Questionnaire plugin, because when you look in the html code for the tables generated by the plugin, we can see that they lack TD's in every table rows as you can see in screenshot 1.

Also, we have another instance of Moodle with the 3.2.0 version of questionnaire and this issue simply doesn't appear. You can see it in the screenshot 2. It generates in every row, six columns. This instance has the very same moodle theme and CSS code.

Again, thank you for your help.

Luís

Attachment screeenshot 1.png
Attachment screenshot 2.png
In reply to Luís Rocha Graça

Re: Users responses are not real

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

Do you see the same thing using the theme that didn't have the problem? In your second capture, the green row you are showing has different content in the HTML than you are showing in the screen display. Are you sure you are looking at the correct thing?

Also, can you provide all of the details of the question that is causing the issue, so I can try to recreate the problem?

Thanks.

In reply to Luís Rocha Graça

Re: Users responses are not real

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

After re-looking at the example you provided, I realized you were using "named degrees" on your rate scale question. I took a look at the HTML being generated, and discovered that there is an extra set of rows incorrectly being generated when that question type is being used.

I have created CONTRIB-6809 to deal with this. You can get the correct code from the patch linked in that issue.

mike

In reply to Luís Rocha Graça

Re: Users responses are not real

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

It looks like there is also a CSS issue with bootstrap based themes, caused by the addition a new div area in the response display. See CONTRIB-6815 for details.

I will have this fixed today, and do a new release.

In reply to Mike Churchward

Re: Users responses are not real

by Luís Rocha Graça -

Hi there Mike,

Great News!!!! It really was that. I already updated the module and the problem has gone!

Many, many thanks for your help. smile

Cheers,

Luís