- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
hide questions, execute jquery code.
- mmirasol
- Topic Author
- Offline
- New Member
Less
More
12 years 1 month ago - 12 years 1 month 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?
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 month ago by mmirasol.
The topic has been locked.
- TMSWhite
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 44
- Thank you received: 15
12 years 1 month ago #75937
by TMSWhite
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
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
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
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
- Expression Manager (EM):
Documentation
|
Sample Surveys
|
How Tos
|
Show Logic File
|
Upgrading to 1.92+ - Excel Style for Survey Structure Import/Export
The topic has been locked.
- mmirasol
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
12 years 1 month ago - 12 years 1 month 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
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 month ago by mmirasol.
The topic has been locked.
- TMSWhite
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 44
- Thank you received: 15
12 years 1 month ago #75939
by TMSWhite
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
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
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
- Expression Manager (EM):
Documentation
|
Sample Surveys
|
How Tos
|
Show Logic File
|
Upgrading to 1.92+ - Excel Style for Survey Structure Import/Export
The topic has been locked.
- mmirasol
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
12 years 1 month 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13647
- Thank you received: 2491
12 years 1 month ago #75966
by DenisChenu
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.
Replied by DenisChenu on topic hide questions, execute jquery code.
Hello Tom,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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 44
- Thank you received: 15
12 years 1 month ago #76005
by TMSWhite
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
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 three options for always-hidden are exactly what Carsten recommends for the future (e.g. 2.0, and possibly 1.92+)
/Tom
If you depend upon LimeSurvey or the support team, please give generously to our 2012 fundraiser .
- Expression Manager (EM):
Documentation
|
Sample Surveys
|
How Tos
|
Show Logic File
|
Upgrading to 1.92+ - Excel Style for Survey Structure Import/Export
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13647
- Thank you received: 2491
12 years 1 month ago #76011
by DenisChenu
: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.
Replied by DenisChenu on topic hide questions, execute jquery code.
Oups ...TMSWhite wrote: The three options for always-hidden are exactly what Carsten recommends for the future (e.g. 2.0, and possibly 1.92+)
: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
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 967
- Thank you received: 220
6 years 11 months ago #153889
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
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.