View Issue Details

IDProjectCategoryView StatusLast Update
12370Feature requests[All Projects] Survey takingpublic2017-06-15 15:55
ReportertammoAssigned To 
PrioritynoneSeverity@50@ 
Status newResolutionopen 
Product Version 
Target Version3.0Fixed in Version 
Summary12370: Different ways of hiding a question: confusing
Description

I now know three ways of hiding a question from being shown on the screen, but there are nasty differences:

Using a text question

  1. Use "Advanced settings > Always hide this question" and click Yes. Result: question is not shown on the screen and values that are in the answer will not be saved in the database.
  2. Use $('#question'+QID).hide(); in the question source results in: the question is not shown, but possible answers (like a result from a Javascript) will be stored.
  3. Use class "hidden" in "Advanced settings > CSS classes" results in: the question is not shown, but possible answers (like a result from a Javascript) will be stored.

So: 2 and 3 seem to have the same effect, but 1 is different. I think that this is confusing.

I would propose to change the setting options of "Always hide this question" from yes/no to:

  • Show
  • Hide (but do render)
  • Do not render
TagsNo tags attached.

Relationships

related to 11665 new More ways to hide a question 

Activities

tammo

tammo

2017-05-02 17:55

partner  

display_user_settings.lss (25,184 bytes)
tammo

tammo

2017-05-02 17:56

partner   ~43535

Or:
Show
Hide & use
Hide & do not use

tammo

tammo

2017-05-03 11:58

partner   ~43549

or better:
Show
Render & hide
Do not render

With some instruction, like:
"Render & hide" means that your question will be in the outputted HTML, but it will not be shown, because it will be hidden by Javascript. This means that Javascript that is in the question text/help text/javascript field will be executed and that results may be stored in the database.
"Do not render" means that the question will not be available in the outputted HTML and that all Javascript that is in the question text/help text or in the Javascript field, will not be executed.

I specifically mention the (not yet existing Javascript field here), since I think that all Javascript should have it's own place in the question. Not in the question text or in the help text.

jelo

jelo

2017-05-03 13:19

partner   ~43555

My feature request was about different hide Modes:
None (Show Question)
Hide completely ( No HTML)
Hide via Javascript / JQuery
Hide via CSS

But your wording will be a lot more accessible.
Take a look at the forum link in this ticket. Very old thread. You might post there too.
https://bugs.limesurvey.org/view.php?id=11665

tammo

tammo

2017-05-03 13:56

partner   ~43556

Last edited: 2017-05-03 13:56

View 2 revisions

OK, five years ago some guys (DenisChenu and TMSWhite) already had this idea. Guess I'm late...

https://www.limesurvey.org/de/foren/can-i-do-this-with-limesurvey/75935-hide-questions,-execute-jquery-code#75966

tammo

tammo

2017-05-03 13:58

partner   ~43557

And related in the last forum post TMSWhite made here:

https://www.limesurvey.org/de/community-hilfe/forum/can-i-do-this-with-limesurvey/96599-save-data-from-hidden-question#107269

tammo

tammo

2017-06-15 15:48

partner   ~43922

https://www.limesurvey.org/forum/can-i-do-this-with-limesurvey/111846-get-parameter-on-question-with-relevance#155893

Issue History

Date Modified Username Field Change
2017-05-02 17:55 tammo New Issue
2017-05-02 17:55 tammo File Added: display_user_settings.lss
2017-05-02 17:56 tammo Note Added: 43535
2017-05-03 11:58 tammo Note Added: 43549
2017-05-03 13:19 jelo Note Added: 43555
2017-05-03 13:49 tammo Relationship added related to 11665
2017-05-03 13:56 tammo Note Added: 43556
2017-05-03 13:56 tammo Note Edited: 43556 View Revisions
2017-05-03 13:58 tammo Note Added: 43557
2017-05-03 14:05 tammo Description Updated View Revisions
2017-06-15 15:48 tammo Note Added: 43922
2017-06-15 15:55 c_schmitz Project Bug reports => Feature requests