Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Change "Always hide this question" for many questions simultaneously

  • kpatch
  • kpatch's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 2 months ago #164099 by kpatch
Hi:

I would like to change "Always hide this question" simultaneously for may questions at once. The questions are not necessarily consecutive nor are they necessarily in the same group.

Thanks for any insights or suggestions.

Patrick
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 2 months ago - 6 years 2 months ago #164171 by Joffm
Hi,
you can use the "massaction" plugin to change the relevance of these questions to "0".

Sorry, no other idea.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 6 years 2 months ago by Joffm.
The topic has been locked.
  • kpatch
  • kpatch's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 2 months ago #164218 by kpatch

Joffm wrote: you can use the "massaction" plugin to change the relevance of these questions to "0".


Joffm


I installed MassAction, but it doesn't appear anywhere in the Administrator's interface. Does MassAction work in V3.x. I'm using Version 3.1.0+180124.

Thanks

Patrick
The topic has been locked.
More
6 years 2 months ago - 6 years 2 months ago #164226 by jelo
The last change in code was in Januar 2017. I don't think the plugin is currently working with LS 3.

Under LS 2.X the "Mass actions"-plugin needs a activated QuickMenu core plugin.
But in LS 3 that seems to be integrated.
The GITHUB-Page states "LimeSurvey 2.53.0 or 2.06lts"

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 6 years 2 months ago by jelo.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 1 month ago #164242 by tpartner
Regardless, Patrick is asking about "Always hide this question" which is unrelated to relevance. As far as I know, there is no way to do that except for exporting the survey and doing a search/replace in the XML file.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 1 month ago #164249 by Joffm
Hi,

in case you have access to the database, you could:
1. use phpMyAdmin
2. write your own script

The only thing to do is the following sql statement:
Code:
INSERT INTO [your_lime_prefix]_question_attributes (qid,attribute,value) VALUES ([QuestionID], "hidden", 1);
You should delete this record before to be sure not to insert this record twice for the same question.
Code:
DELETE FROM [your_lime_prefix]_question_attributes WHERE qid=[QuestionID];

You can copy this statement - just change the QuestionID - and run it in one batch.

On the other side I do not think this is really necessary.
How much does it take to set - let's say - 100 questions to 'hidden'? 25 Minutes?

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 1 month ago #164251 by Joffm
Correction:

The DELETE statement is:
Code:
DELETE FROM [your_lime_prefix]_question_attributes WHERE (qid=[QuestionID]) AND (attribute='hidden');

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
6 years 1 month ago #164280 by ollehar
Sorry, the MassAction plugin is not available for LS 3 yet.
The topic has been locked.
More
4 years 5 months ago #191221 by jamarin

Joffm wrote: Hi,

On the other side I do not think this is really necessary.
How much does it take to set - let's say - 100 questions to 'hidden'? 25 Minutes?
/quote]

In my case hiding 100 questions means 1 hour and a half (and a lot of possibilities of missing something)
It is a pity that the Settings/list questions bulk options does not allow to hide/show several questions at once (or choose the scale when exporting to spss)
this kind of bulk actions may save me a lot of time configuring surveys

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose