Welcome to the LimeSurvey Community Forum

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

hide questions, execute jquery code.

  • mmirasol
  • mmirasol's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 1 week ago - 12 years 1 week ago #75935 by mmirasol
hide questions, execute jquery code. was created by mmirasol
Hello Guys,

I'm wondering if there's a way to hide questions in lime. At the moment, I have to use css to hide certain questions. I saw the attribute 'always hide this question' but observed that it excludes the question completely instead of just adding style='display:none'.

An example of a question I need is like the one in the attached a6 image. I created a multi text array, added an html textbox for the 'other, please specify' box and jquery code to record the input text in a hidden short text question.

Is there a quicker way to do this in lime?
Attachments:
Last edit: 12 years 1 week ago by mmirasol.
The topic has been locked.
  • TMSWhite
  • TMSWhite's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
12 years 1 week ago #75937 by TMSWhite
Replied by TMSWhite on topic hide questions, execute jquery code.
Another option is to create an always-hidden Equation question and have your jQuery populate it. Hidden Equations are always present in the JavaScript since their values may be used for branching, validation, or tailoring (unlike other always-hidden questions, which have no HTML rendered at all, as you saw. Values entered into Equation questions are stored in the database.

If you feel like hacking LimeSurvey code, there is already an "other" option for many other question types. It would be nice to have it available for array type questions in the manner your display. If it were, all of the array_filter and array_filter_exclude logic would immediately work for them, so it's just a matter of tweaking qanda.php
The topic has been locked.
  • mmirasol
  • mmirasol's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 1 week ago - 12 years 1 week ago #75938 by mmirasol
Replied by mmirasol on topic hide questions, execute jquery code.
Hi Tom,

Thanks for the advise. I will have a look at these files. =) BTW, how is v1.92 going? Do we have a new scheduled date for the stable release? =)

Mark
Last edit: 12 years 1 week ago by mmirasol.
The topic has been locked.
  • TMSWhite
  • TMSWhite's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
12 years 1 week ago #75939 by TMSWhite
Replied by TMSWhite on topic hide questions, execute jquery code.
It was quietly released last Friday. You can get it here: www.limesurvey.org/en/download
The topic has been locked.
  • mmirasol
  • mmirasol's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 1 week ago #75940 by mmirasol
Replied by mmirasol on topic hide questions, execute jquery code.
oh. hehe thanks. I've been waiting for an announcement on the front page. =)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
12 years 1 week ago #75966 by DenisChenu
Replied by DenisChenu on topic hide questions, execute jquery code.

TMSWhite wrote: Another option is to create an always-hidden Equation question and have your jQuery populate it. Hidden Equations are always present in the JavaScript since their values may be used for branching, validation, or tailoring (unlike other always-hidden questions, which have no HTML rendered at all, as you saw. Values entered into Equation questions are stored in the database.

Hello Tom,

Why don't have :
hidden attribute:
- No
- Completely remove from HTML
- Hide in CSS

For all question type ?

Actual "hidden" become Completely remove from HTML for compatibility issue.

I think some user can hide completly some validation question to activate after some month when it's needed for example :).

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • TMSWhite
  • TMSWhite's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
12 years 1 week ago #76005 by TMSWhite
Replied by TMSWhite on topic hide questions, execute jquery code.
Denis-

The three options for always-hidden are exactly what Carsten recommends for the future (e.g. 2.0, and possibly 1.92+)

/Tom
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
12 years 1 week ago #76011 by DenisChenu
Replied by DenisChenu on topic hide questions, execute jquery code.

TMSWhite wrote: The three options for always-hidden are exactly what Carsten recommends for the future (e.g. 2.0, and possibly 1.92+)

Oups ...
:blush:

:hammer:

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
6 years 10 months ago #153889 by tammo
Replied by tammo on topic hide questions, execute jquery code.


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose