Welcome to the LimeSurvey Community Forum

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

cleaves and rows should appear seperatly

More
8 years 10 months ago #143613 by Wrankmore_A
Hi,
I want to carry out a Survey to different Farmers.
1.
In one question they should enter the different field crops they plant in this season.
Is it possible that rows appear only after you have made an entry in the previous row?

2.
The next table should use the answers from the field crop table as column headings.

Is it possible to realise it in limesurvey? How can I do this?

Thanks for helping
The topic has been locked.
More
8 years 10 months ago - 8 years 10 months ago #143629 by tpartner
1) In version 2.06 and newer you can place relevance on sub-questions so they only display if the previous sub-question is not empty. For example, something like this for a second sub-question:
Code:
!is_empty(Q1_SQ001.NAOK)

2) There is no filtering for array columns without custom JavaScript. Can you provide screenshots or mock-ups of what you are doing. Also LimeSurvey version and template used.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 10 months ago by tpartner.
The topic has been locked.
More
8 years 10 months ago #143630 by tpartner
Wait, regarding #2, maybe this plugin will work for you - framagit.org/SondagePro-LimeSurvey-plugin/hideEmptyColumn

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 10 months ago #143639 by Wrankmore_A
Sry I'm just using limesurvey first time :pinch:
I entered different fomules I found:
! is_empty(SQ0001)
is_empty(B2_SQ0001)
is_empty(B2_SQ0001.NAOK --> (why there is the ending .NAOK?)
is_empty(B2_SQ0001.NAOK)
like


but every time in my preview it Looks like this



What am I doing wrong?
More
8 years 10 months ago - 8 years 10 months ago #143643 by Joffm
Hi, Wrankmore_A,

the relevance is:
If NOT is empty the answer before I want to show this line.

Therefore you have to add the !
!is_empty(B2_SQ002), or so

And just by the way:
NAOK means "No Answer is OK"

In Manual: .NAOK - same as .code, but can be part of calculations or lists even if irrelevant.
E.g. if you calculate a mean, normally it will fail if there is a missing variable in the list. Therefore add NAOK.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 8 years 10 months ago by Joffm. Reason: Ergänzung
The topic has been locked.
More
8 years 10 months ago #143670 by tpartner

Therefore you have to add the !

Oops, yes, I had a typo in my post.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
8 years 10 months ago #143684 by Wrankmore_A
Thank you for your help.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose