Welcome to the LimeSurvey Community Forum

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

hiding previous sub question if blank

  • Carolyn2017
  • Carolyn2017's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202696 by Carolyn2017
hiding previous sub question if blank was created by Carolyn2017
I have a multiple text question Q9, with 6 subquestions Q9_1, Q9_2..Q9_6. I am using the responses in a couple of questions that follow, in a radio and a dual array. I can get them to show, in the following questions using Q9_1.valueNAOK, in each of the following subquestions, and by specifying in the relevance on the side of the subquestion for Q22. but if someone does not put answers in each of the 6 subquestions in Q9, say they only have 2 answers, how do I hide those subquestions rows in Q22, they come up blank.
Would appreciate any help.
The topic has been locked.
  • Carolyn2017
  • Carolyn2017's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202698 by Carolyn2017
Replied by Carolyn2017 on topic hiding previous sub question if blank
I just tried using {!is_empty(Q9_1)} in the relevance for that subquestion, to hide the previous response in Q9_1 when it is blank, but it does not work. Any advice.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202701 by Joffm
Replied by Joffm on topic hiding previous sub question if blank
Hi,
nearly everything is fine.

BUT: Did you really use the curly brackets in the subquestion relevance {!is_empty(Q9_1)}?
This is a plain equation; so remove them.



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202710 by DenisChenu
Replied by DenisChenu on topic hiding previous sub question if blank
1: don't use valueNAOK excet you use assessment
2. Use .NAOK , always

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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202728 by Joffm
Replied by Joffm on topic hiding previous sub question if blank
@Denis,

I wanted to mention the use of QCode.value, too,
but then I saw the explanation in the manual:
Qcode.value:
the assessment value for the question if it is relevant (otherwise blank), or the text value if it is not a coded question

So, this may be misleading.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Carolyn2017
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202739 by DenisChenu
Replied by DenisChenu on topic hiding previous sub question if blank
valueNAOK here : then can return 0 for single answer :)

«or the text value if it is not a coded question» unsure i think it's NAOK only for text question type, but if you want text : .shown is the best

.value must be used with care and know what you do an need.

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 following user(s) said Thank You: Carolyn2017
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202741 by Joffm
Replied by Joffm on topic hiding previous sub question if blank
Yes, I know that.
But others - like Carolyn - may be confused.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: Carolyn2017
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202742 by DenisChenu
Replied by DenisChenu on topic hiding previous sub question if blank
Carolyn use valueNAOK : my advice : was use .NAOK (or .shown)

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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202744 by Joffm
Replied by Joffm on topic hiding previous sub question if blank
Of course,

in my opinion she was confused because of this phrase in the manual.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Carolyn2017
  • Carolyn2017's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202760 by Carolyn2017
Replied by Carolyn2017 on topic hiding previous sub question if blank
Thanks so much it works now, appreciate you advice.Yes I did have brackets in there.... I think you assume that everyone who is using this software has an IT background. I'm a research fellow in psychology and for most surveys you can get by without knowing the conventions you have learnt. Once upon a time universities supplied the experts to help us poor RF's to do this, now we must do for ourselves. thanks
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose