Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: how to dynamic display the subqestions according to the input

how to dynamic display the subqestions according to the input 5 months 3 weeks ago #104118

  • iscar
  • iscar's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 176
  • Thank you received: 1
  • Karma: 0
i am using 2.0 LS,design a multiple short text question.

1_2014-01-26.jpg

the thought is :when partcipant write something in sq001, then sq002 appear. when write something is sq002 ,then sq003 appear.

result: my sytax doesn't work.
i don't know where is the problem, pls give me some help, thanks in advance!
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 5 months 3 weeks ago #104152

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6192
  • Thank you received: 786
  • Karma: 238
I think it's self_sqSQ001 is better.

But maybe self is not good here. Did you try with QQ_SQ001 ? (QQ is the code of the question).

Did you have a look at survey lofgic file for this question ?

Denis
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 5 months 3 weeks ago #104268

  • iscar
  • iscar's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 176
  • Thank you received: 1
  • Karma: 0
tried, the question code is disappear, but block still there.
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 5 months 3 weeks ago #104295

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6192
  • Thank you received: 786
  • Karma: 238
Can you send the lsg file ?
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 5 months 3 weeks ago #104308

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4049
  • Thank you received: 739
  • Karma: 341
You will not be able to hide the sub-question rows this way. This will only hide the sub-question text.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Last Edit: 5 months 3 weeks ago by tpartner.
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 5 months 3 weeks ago #104338

  • mfaber
  • mfaber's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 82
  • Thank you received: 21
  • Karma: 4
"Subquestion relevance" is a feature SO often asked for by users...we should get this running sooner or later.
Proper implentation in EM and GUI would need some work but I thought about adding a SQhide() function as a workaround. So users could add e.g. in the question text:
{if(!isempty(question1_1), "This is the subquestion text", SQhide(this.SGQA))}

This would probably just take a few hours to implement and test...maybe my weekend project :)
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 5 months 3 weeks ago #104342

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4049
  • Thank you received: 739
  • Karma: 341
mfaber, I agree that it would be very useful.

Bear in mind that, when hidden, you will also need to somehow render the sub-question irrelevant. So, the question will still pass a "Mandatory" requirement when hidden options are unanswered.


.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 5 months 3 weeks ago #104343

  • mfaber
  • mfaber's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 82
  • Thank you received: 21
  • Karma: 4
true...
hmmm...
It seems large parts of subquestion relevance are already implemented, otherwise the array filter would not work. But there's no interface...no place to enter SQ relevance equations directly. Maybe an SQhide() function could influence SQ relevance directly and let EM do the actual hiding. Too much speculation...need to have a look at the code ;)
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 5 months 3 weeks ago #104348

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2549
  • Thank you received: 285
  • Karma: 102
I agree, it would be great if subquestions could be treated like questions with EM. Maybe another text input just behind the question text.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 3 months 3 weeks ago #106909

  • gap1981
  • gap1981's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Thank you received: 1
  • Karma: 1
Somebody has done some development on this subjet? I have the same needs.
The administrator has disabled public write access.
The following user(s) said Thank You: sebastienbo
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.136 seconds
Donation Image