how to dynamic display the subqestions according to the input

More
3 years 3 months ago #104118 by iscar
iscar created the topic: how to dynamic display the subqestions according to the input
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!
Attachments:

Please Log in to join the conversation.

More
3 years 3 months ago #104152 by DenisChenu
DenisChenu replied the topic: how to dynamic display the subqestions according to the input
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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 3 months ago #104268 by iscar
iscar replied the topic: how to dynamic display the subqestions according to the input
tried, the question code is disappear, but block still there.

Please Log in to join the conversation.

More
3 years 3 months ago #104295 by DenisChenu
DenisChenu replied the topic: how to dynamic display the subqestions according to the input
Can you send the lsg file ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
3 years 3 months ago - 3 years 3 months ago #104308 by tpartner
tpartner replied the topic: how to dynamic display the subqestions according to the input
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.
Last Edit: 3 years 3 months ago by tpartner.

Please Log in to join the conversation.

More
3 years 3 months ago #104338 by mfaber
mfaber replied the topic: how to dynamic display the subqestions according to the input
"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 :)

Please Log in to join the conversation.

More
3 years 3 months ago #104342 by tpartner
tpartner replied the topic: how to dynamic display the subqestions according to the input
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.

Please Log in to join the conversation.

More
3 years 3 months ago #104343 by mfaber
mfaber replied the topic: how to dynamic display the subqestions according to the input
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 ;)

Please Log in to join the conversation.

More
3 years 3 months ago #104348 by holch
holch replied the topic: how to dynamic display the subqestions according to the input
I agree, it would be great if subquestions could be treated like questions with EM. Maybe another text input just behind the question text.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
3 years 1 month ago #106909 by gyts
gyts replied the topic: how to dynamic display the subqestions according to the input
Somebody has done some development on this subjet? I have the same needs.
The following user(s) said Thank You: sebastienbo

Please Log in to join the conversation.

More
3 years 1 month ago - 3 years 1 month ago #106912 by DenisChenu
DenisChenu replied the topic: how to dynamic display the subqestions according to the input
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

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 3 years 1 month ago by DenisChenu.
The following user(s) said Thank You: Ben_V

Please Log in to join the conversation.

More
3 years 1 month ago #106913 by mfaber
mfaber replied the topic: how to dynamic display the subqestions according to the input
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 following user(s) said Thank You: DenisChenu, holch, Ben_V

Please Log in to join the conversation.

More
3 years 1 month ago #106916 by gyts
gyts replied the topic: how to dynamic display the subqestions according to the input
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.

Please Log in to join the conversation.

More
3 years 1 month ago #106974 by coeneisma
coeneisma replied the topic: how to dynamic display the subqestions according to the input
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 following user(s) said Thank You: gyts, first

Please Log in to join the conversation.

More
3 years 1 month ago #107121 by gyts
gyts replied the topic: how to dynamic display the subqestions according to the input
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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now