hiding previous sub question if blank

More
4 weeks 2 days ago #202696 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.

Please Log in to join the conversation.

LimeSurvey Partners
More
4 weeks 2 days ago #202698 by Carolyn2017
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.

Please Log in to join the conversation.

More
4 weeks 2 days ago #202701 by Joffm
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
Attachments:

Please Log in to join the conversation.

More
4 weeks 2 days ago #202710 by DenisChenu
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.

Please Log in to join the conversation.

More
4 weeks 1 day ago #202728 by Joffm
@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

Please Log in to join the conversation.

More
4 weeks 1 day ago #202739 by DenisChenu
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

Please Log in to join the conversation.

More
4 weeks 1 day ago #202741 by Joffm
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

Please Log in to join the conversation.

More
4 weeks 1 day ago #202742 by DenisChenu
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.

Please Log in to join the conversation.

More
4 weeks 1 day ago #202744 by Joffm
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

Please Log in to join the conversation.

More
4 weeks 1 day ago #202760 by Carolyn2017
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

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now