Change "Always hide this question" for many questions simultaneously

More
9 months 3 weeks ago #164099 by kpatch
kpatch created the topic: Change "Always hide this question" for many questions simultaneously
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

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago - 9 months 3 weeks ago #164171 by Joffm
Joffm replied the topic: Change "Always hide this question" for many questions simultaneously
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: 9 months 3 weeks ago by Joffm.

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #164218 by kpatch
kpatch replied the topic: Change "Always hide this question" for many questions simultaneously

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

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago - 9 months 3 weeks ago #164226 by jelo
jelo replied the topic: Change "Always hide this question" for many questions simultaneously
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"

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey
Last Edit: 9 months 3 weeks ago by jelo.

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #164242 by tpartner
tpartner replied the topic: Change "Always hide this question" for many questions simultaneously
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.

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #164249 by Joffm
Joffm replied the topic: Change "Always hide this question" for many questions simultaneously
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:
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.
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

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #164251 by Joffm
Joffm replied the topic: Change "Always hide this question" for many questions simultaneously
Correction:

The DELETE statement is:
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

Please Log in or Create an account to join the conversation.

More
9 months 3 weeks ago #164280 by ollehar
ollehar replied the topic: Change "Always hide this question" for many questions simultaneously
Sorry, the MassAction plugin is not available for LS 3 yet.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!