Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: Browsing responses

Browsing responses 4 years 9 months ago #74332

  • tave
  • tave's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Is there a way to filter out some fields from the "display responses table"
I only need a few fields to quickly see the most important questions.
For example i would need to get rid of the "completed Y/N" field and the "start language" field since they are only taking up space from the table leaving less room for actual answers and are no way needed when looking through the answers. Also i would need the "Submitted date" field to show up when browsing responses. I know it can be seen from "View response details" but would be important to see submit date quickly while browsing through the answers.

Is there any easy way of choosing which fields(questions) are shown in the "Display responses" table. Any help would be appriciated.
Last Edit: 4 years 9 months ago by tave.
The administrator has disabled public write access.

Aw: Browsing responses 4 years 9 months ago #74347

  • Steve01
  • Steve01's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 493
  • Thank you received: 47
  • Karma: 17
Hello,

I don't think there is an option for customizing the "display responses" table view. If you want to change the look and feel you might have to dig into the source code of LimeSurvey and change it there or submit an idea at ideas.limesurvey.org/ is no similar idea exists.
Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team
The administrator has disabled public write access.

Aw: Browsing responses 4 years 9 months ago #74378

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
I'm no CSS guru but it might be possible to hide the first X columns of the browse repsonse overview by adding some CSS to the adminstyle.css file.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.

Aw: Browsing responses 4 years 9 months ago #74402

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
I don't think you can do it just using only CSS but you could add a function to admin_core.js to hide certain columns. You could use the value of the "sid" hidden input to hide the coulmns for specific surveys.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Browsing responses 4 years 9 months ago #74408

  • tave
  • tave's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Does someone have any idea how that is done? I sure don't :(

Thank you all for your answers so far.
The administrator has disabled public write access.

Aw: Browsing responses 4 years 9 months ago #74412

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
Add the following to the end of admin_core.js.

Replace "SS" with your survey ID and add or remove columns as nessessary.

This example will hide columns 3 and 5 which (in my survey) are "Completed" and "Start language".
$(document).ready(function(){
 
	// Survey ID
	var sID = SS;
	// Comma separated list of columns to be hidden
	var hiddenColumns = [3,5];
 
	if($('input[name="sid"]').attr('value') == sID) {
 
		// Add some column-specific classes
		$('.browsetable tr').each(function(i, el){
			$('> *', this).each(function(i, el){ 
				$(el).addClass('col-'+(i+1));
			});
		});
 
		// Loop through the hiddenColumns and hide them
		$(hiddenColumns).each(function(i){ 
			$('.col-'+this+'').hide();
		});
	}
 
});
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
The following user(s) said Thank You: tave

Aw: Browsing responses 4 years 9 months ago #74440

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
Don't forget to buy Tony a beer :-)

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.

Browsing responses 4 years 9 months ago #74447

  • tave
  • tave's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Thank you very much i will try that first thing when i get time=)
The administrator has disabled public write access.

Browsing responses 4 years 9 months ago #74448

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
tave wrote:
Thank you very much i will try that first thing when i get time=)
You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.

Browsing responses 4 years 9 months ago #74453

  • tave
  • tave's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
I just might :P

I was also wondering if i can use something similiar to show submit date.
It does show up in details but would be usefull to show up in the browse view also.

ps. that code worked exactly as needed:)
The administrator has disabled public write access.

Browsing responses 4 years 9 months ago #74455

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
If your survey is NON-anonymous, you can set "Date stamp" = "Yes" in Survey properties --> general settings --> Notification & data management


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Browsing responses 4 years 9 months ago #74456

  • tave
  • tave's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Yeah that adds "Date started" and "Date last action" instead of those more usefull would be "Submission Date" which can be seen when vieving response details
The administrator has disabled public write access.

Browsing responses 4 years 9 months ago #74482

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
tave wrote:
I was also wondering if i can use something similiar to show submit date.
It does show up in details but would be usefull to show up in the browse view also.
I would even consider this a bug because there is no reason not to show that field at the browse response overview as well, so please open a ticket at the bugtracker and...
  1. Give as much information as possible
  2. Attach your survey. You can mark your ticket "private" so that only the developers will be able to take a look at it.
  3. Provide step-by-step instructions how to reproduce the problem.
  4. If possible/helpful please provide screenshots

Afterwards please post the link to the bugtracker so we can follow the progress.

Thanks!

P.S. Please open a new topic for different issues in the future.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.

Browsing responses 4 years 9 months ago #74519

  • tave
  • tave's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 7
  • Karma: 0
Ok will do after i am done with the survey=)

Also the later post about the submit date wasnt exactly a new issue i wrote about already in the first post :laugh:

Ps. Can i somehow list survey id's in the code that tpartner made before so i get the same action to other surveys aswell?
The administrator has disabled public write access.

Browsing responses 4 years 9 months ago #74522

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6029
  • Thank you received: 373
  • Karma: 260
To my knowledge that isn't possible because there are no CSS IDs or classes containing the survey ID.
But tpartner might prove me worng.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.748 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form