Welcome, Guest
Username: Password: Remember me

TOPIC: Group description not shown on questions

Group description not shown on questions 2 years 10 months ago #65653

  • algarvio
  • algarvio's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hi!

I'm using version 1.91+ Build 10951. I created a survey and set the option "Show group name and/or group description" to "Both".

When entering a new group, a page with group name and group description shows. But in the questions, only the group name shows. Is this the normal behavior? Or there should be the group description also?

Is there a way not to show the separator with group name and group description or is it only possible when there is no group description?

Thanks.
The administrator has disabled public write access.

Re: Group description not shown on questions 2 years 10 months ago #65660

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4071
  • Thank you received: 748
  • Karma: 341
Are you you are using "question by question" mode?

Which template are you using?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Group description not shown on questions 2 years 10 months ago #65671

  • algarvio
  • algarvio's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hi!

I've tried several templates, all had the same behavior. Now I'm using the default from the version 1.91+ Build 10951.

It's in "question by question" mode, yes.

Thanks.
The administrator has disabled public write access.

Re: Group description not shown on questions 2 years 10 months ago #65689

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4071
  • Thank you received: 748
  • Karma: 341
To get the group description to appear on question pages, add the {GROUPDESCRIPTION} placeholder to startgroup.pstpl.

To get rid of the group description pages, add the following to the end of template.js:
	$(document).ready(function() {
 
		if($('#fieldnames').attr('value') =='') {
			$('body').hide();
			$('form#limesurvey').submit();
		}
 
	});
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 2 years 10 months ago by tpartner.
The administrator has disabled public write access.
The following user(s) said Thank You: algarvio

Re: Group description not shown on questions 2 years 10 months ago #65711

  • algarvio
  • algarvio's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hi Tony!

Thank you. It solved the problem. But isn't this a bug? Shouldn't it appear if in General Settings -> Presentation & navigation -> Show group name and/or group description I have selected "Show both"? Shouldn't then be inserted the file groupdescription.pstpl?

If so, I can report the bug, if it helps you.

Thanks.

Fernando Algarvio
The administrator has disabled public write access.

Re: Group description not shown on questions 2 years 10 months ago #65719

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4071
  • Thank you received: 748
  • Karma: 341
I don't think it's a bug. They are only supposed to be inserted where the placeholders are in the template. It's simply a matter of template design.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Group description not shown on questions 2 years 10 months ago #65766

  • algarvio
  • algarvio's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hello!

As documented, the placeholder should be in file groupdescription.pstl not in startgroup.pstpl:

groupdescription.pstpl: This template file is used to display a description of a group. It is separate to the startgroup.pstpl file because in a "question by question" survey it will be displayed on its own unique page in between groups, whereas in a "group by group" or "all in one" survey it provides a header to the subsequent questions. groupdescription.pstpl does not have a corresponding 'closing' template file, so all tags should be closed.

In the default template, where I traced the problem, the placeholder is there.

Now, my doubt is if I miss interpret the option "Show group name and/or group description". Should, in a question-by-question survey, the group description never appears in each question?

Thank you for your attention.

Fernando Algarvio
Last Edit: 2 years 10 months ago by algarvio.
The administrator has disabled public write access.

Re: Group description not shown on questions 2 years 10 months ago #65771

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4071
  • Thank you received: 748
  • Karma: 341
Thanks, I know what the documentationn says - the workaround I gave you is for a specific case. I was under the impression you wanted the group description in every page of a question-by-question survey. If not, just leave things as they are.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.176 seconds
Donation Image