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 2 years 2 weeks ago #104118

  • iscar
  • iscar's Avatar
  • Offline
  • Banned
  • Posts: 312
  • Thank you received: 1
  • Karma: -4
i am using 2.0 LS,design a multiple short text question.


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 2 years 2 weeks ago #104152

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8243
  • Thank you received: 1124
  • Karma: 335
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 2 years 2 weeks ago #104268

  • iscar
  • iscar's Avatar
  • Offline
  • Banned
  • Posts: 312
  • Thank you received: 1
  • Karma: -4
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 2 years 1 week ago #104295

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8243
  • Thank you received: 1124
  • Karma: 335
Can you send the lsg file ?
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 2 years 1 week ago #104308

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5419
  • Thank you received: 1155
  • Karma: 480
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: 2 years 1 week ago by tpartner.
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 2 years 1 week ago #104338

  • mfaber
  • mfaber's Avatar
  • Offline
  • Expert Lime
  • Posts: 86
  • Thank you received: 22
  • 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 2 years 1 week ago #104342

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5419
  • Thank you received: 1155
  • Karma: 480
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 2 years 1 week ago #104343

  • mfaber
  • mfaber's Avatar
  • Offline
  • Expert Lime
  • Posts: 86
  • Thank you received: 22
  • 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 2 years 1 week ago #104348

  • holch
  • holch's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 4400
  • Thank you received: 620
  • Karma: 198
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 1 year 10 months ago #106909

  • gap1981
  • gap1981's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • 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

how to dynamic display the subqestions according to the input 1 year 10 months ago #106912

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8243
  • Thank you received: 1124
  • Karma: 335
Hi, for 2.06 we have surely some included solution (thanks to grapsusmfaber).

For actaul version,

You can have a look to :
limesurvey.sondages.pro/676785

I add to put it in workaround (and translate in english). but all information is here.

Denis
Last Edit: 1 year 10 months ago by DenisChenu.
The administrator has disabled public write access.
The following user(s) said Thank You: Ben_V

how to dynamic display the subqestions according to the input 1 year 10 months ago #106913

  • mfaber
  • mfaber's Avatar
  • Offline
  • Expert Lime
  • Posts: 86
  • Thank you received: 22
  • Karma: 4
I worked on a solution and I hope it will be in the next major version of Limesurvey (probably 2.06). You will have the opportunity to enter relevance equations for each subquestion. See: github.com/LimeSurvey/LimeSurvey/pull/177
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu, holch, Ben_V

how to dynamic display the subqestions according to the input 1 year 10 months ago #106916

  • gap1981
  • gap1981's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • Thank you received: 1
  • Karma: 1
hi it seem i dont understand the solution you are proposing. You said that the original question of this post is answered in your survey?
i think you are talking about relevance of subquestions based on a previous answer. Sorry if i dont get it.
The administrator has disabled public write access.

how to dynamic display the subqestions according to the input 1 year 10 months ago #106974

  • coeneisma
  • coeneisma's Avatar
  • Offline
  • Senior Lime
  • Posts: 58
  • Thank you received: 12
  • Karma: 5
I think I asked the same question once. Quistion and answer are here:

www.limesurvey.org/nl/forum/can-i-do-thi...ne-is-answered#87781
The administrator has disabled public write access.
The following user(s) said Thank You: gap1981, OMdev

how to dynamic display the subqestions according to the input 1 year 10 months ago #107121

  • gap1981
  • gap1981's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 16
  • Thank you received: 1
  • Karma: 1
Thanks coeneisma it works like a charm. Did you know if its possible to adapt it to a array of texts?
I tried replacing the multiple-short-txt to array-multi-flexi-text but im not so sure this is the question class. The only sure things is that doesnt work.
Thank you very much in advance.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.213 seconds