Relevance equation pointing to box of array/numbers, checkbox layout

More
2 weeks 5 days ago #181390 by frederikbrandenstein
Hi everybody!

I'm stuck with the following (running LS 3.16.0):

For judging the relevance of question 2, I want to check whether a box in question 1 (Array, Numbers, Checkbox-Layout) was checked.

I thought it should be sth. in line with:
((question1_ya_xa.NAOK==1))

Didn't work, I do not get addressing the subquestion or its value right.

MWE attached, all help highly appreciated.

THX

Frederik

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
2 weeks 5 days ago #181409 by frederikbrandenstein
Attachments:

Please Log in or Create an account to join the conversation.

More
2 weeks 5 days ago - 2 weeks 5 days ago #181410 by tpartner

Didn't work, I do not get addressing the subquestion or its value right.

Did you check the logic file for errors?

If the question/sub-question codes are correct, try this:

!is_empty(question1_ya_xa.NAOK)

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 2 weeks 5 days ago by tpartner.

Please Log in or Create an account to join the conversation.

More
2 weeks 5 days ago #181414 by frederikbrandenstein
Tony,

it works with your equation -- but only if I display the questions groupwise (sth. that took me some time to work out).

Is it possible to make it work in a "question by question" setup thus is it supposed to be limited to groupwise display?

Attached, find another MWE.
Attachments:

Please Log in or Create an account to join the conversation.

More
2 weeks 5 days ago #181425 by tpartner
Why not use group-by-group and place questions in separate groups.

Sorry, I cannot review your file this week, I am contributing via phone.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
2 weeks 4 days ago #181426 by jelo

frederikbrandenstein wrote: Is it possible to make it work in a "question by question" setup thus is it supposed to be limited to groupwise display?

I would recommend group display. But you might be the victim of the AJAX mode.


Deactivate the mode in your survey theme settings and try again. It should work then in question by question mode too.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Attachments:
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
2 weeks 4 days ago - 2 weeks 4 days ago #181427 by DenisChenu

frederikbrandenstein wrote: Is it possible to make it work in a "question by question" setup thus is it supposed to be limited to groupwise display?

I can confirm it work (with the first lss file) without ajax mode (and question by question mode).
But it's broken with ajax mode.

You muts report this (major) issue : www.limesurvey.org/community/bug-tracker

Personnaly : i disable ajax mode 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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last edit: 2 weeks 4 days ago by DenisChenu.

Please Log in or Create an account to join the conversation.

More
2 weeks 4 days ago - 2 weeks 4 days ago #181428 by Joffm
sorry, wrong post

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 weeks 4 days ago by Joffm.

Please Log in or Create an account to join the conversation.

More
2 weeks 4 days ago #181462 by jelo

DenisChenu wrote: But it's broken with ajax mode.

The other way around. AjaxMode as a feature is broken. But an official statement about why it is worth to debug and test this feature, is still missing.

bugs.limesurvey.org/view.php?id=14616

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

More
2 weeks 4 days ago #181467 by frederikbrandenstein
Okay everybody,

thank you very much for your quick response and help,

to wrap it up:

I filed a bug report: bugs.limesurvey.org/view.php?id=14620

I tested switching off ajax mode in the rather complex survey I am putting together and that works, so that will be the appropriate solution in my case.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!