- Posts: 9
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Relevance equation for x-scale in array-numbers question
- MarkusBuchheit
- Topic Author
- Offline
- New Member
Less
More
7 years 2 months ago - 7 years 2 months ago #147950
by MarkusBuchheit
Relevance equation for x-scale in array-numbers question was created by MarkusBuchheit
Hello,
I am using an array-numbers question with checkbox layout to ask respondents for connections between given names that they entered in four previous questions. Now I have a new problem: On the x-scale and the y-scale I want only the previously entered names to be shown. I used the subquestion-relevance for this. For the y-scale, this has worked fine and the the logic is shown as the following: (the questions 2, 3, 4 and 5 with their respective subquestions a-e ask for the names, the relevance sets the condition that the entry cannot be empty)
SQ-1 q10_q10aa ! is_empty(q2_q2a) q2_q2a
SQ-2 q10_q10ab ! is_empty(q2_q2b) q2_q2b
SQ-3 q10_q10ac ! is_empty(q2_q2c) q2_q2c
SQ-4 q10_q10ad ! is_empty(q2_q2d) q2_q2d
SQ-5 q10_q10ae ! is_empty(q2_q2e) q2_q2e
SQ-6 q10_q10af ! is_empty(q3_q3a) q3_q3a
SQ-7 q10_q10ag ! is_empty(q3_q3b) q3_q3b
SQ-8 q10_q10ah ! is_empty(q3_q3c) q3_q3c
SQ-9 q10_q10ai ! is_empty(q3_q3d) q3_q3d
SQ-10 q10_q10aj ! is_empty(q3_q3e) q3_q3e
SQ-11 q10_q10ak ! is_empty(q4_q4a) q4_q4a
SQ-12 q10_q10al ! is_empty(q4_q4b) q4_q4b
SQ-13 q10_q10am ! is_empty(q4_q4c) q4_q4c
SQ-14 q10_q10an ! is_empty(q4_q4d) q4_q4d
SQ-15 q10_q10ao ! is_empty(q4_q4e) q4_q4e
SQ-16 q10_q10ap ! is_empty(q5_q5a) q5_q5a
SQ-17 q10_q10aq ! is_empty(q5_q5b) q5_q5b
SQ-18 q10_q10ar ! is_empty(q5_q5c) q5_q5c
SQ-19 q10_q10as ! is_empty(q5_q5d) q5_q5d
SQ-20 q10_q10at ! is_empty(q5_q5e) q5_q5e
As I said, this works fine for the y-scale. For the x-scale of the array I have used the exact same relevance equation, but it does not work and the logic is shown as this: (with [VALUE: q10ba] instead of the relevance equation i entered)
A[1]-1 q10ba [VALUE: q10ba] q2_q2a
A[1]-2 q10bb [VALUE: q10bb] q2_q2b
A[1]-3 q10bc [VALUE: q10bc] q2_q2c
A[1]-4 q10bd [VALUE: q10bd] q2_q2d
A[1]-5 q10be [VALUE: q10be] q2_q2e
A[1]-6 q10bf [VALUE: q10bf] q3_q3a
A[1]-7 q10bg [VALUE: q10bg] q3_q3b
A[1]-8 q10bh [VALUE: q10bh] q3_q3c
A[1]-9 q10bi [VALUE: q10bi] q3_q3d
A[1]-10 q10bj [VALUE: q10bj] q3_q3e
A[1]-11 q10bk [VALUE: q10bk] q4_q4a
A[1]-12 q10bl [VALUE: q10bl] q4_q4b
A[1]-13 q10bm [VALUE: q10bm] q4_q4c
A[1]-14 q10bn [VALUE: q10bn] q4_q4d
A[1]-15 q10bo [VALUE: q10bo] q4_q4e
A[1]-16 q10bp [VALUE: q10bp] q5_q5a
A[1]-17 q10bq [VALUE: q10bq] q5_q5b
A[1]-18 q10br [VALUE: q10br] q5_q5c
A[1]-19 q10bs [VALUE: q10bs] q5_q5d
A[1]-20 q10bt [VALUE: q10bt] q5_q5e
Now my question: Why is this happening and how can I get the relevance equation to work for the x-scale too?
Thank you very much in advance!
I am using an array-numbers question with checkbox layout to ask respondents for connections between given names that they entered in four previous questions. Now I have a new problem: On the x-scale and the y-scale I want only the previously entered names to be shown. I used the subquestion-relevance for this. For the y-scale, this has worked fine and the the logic is shown as the following: (the questions 2, 3, 4 and 5 with their respective subquestions a-e ask for the names, the relevance sets the condition that the entry cannot be empty)
SQ-1 q10_q10aa ! is_empty(q2_q2a) q2_q2a
SQ-2 q10_q10ab ! is_empty(q2_q2b) q2_q2b
SQ-3 q10_q10ac ! is_empty(q2_q2c) q2_q2c
SQ-4 q10_q10ad ! is_empty(q2_q2d) q2_q2d
SQ-5 q10_q10ae ! is_empty(q2_q2e) q2_q2e
SQ-6 q10_q10af ! is_empty(q3_q3a) q3_q3a
SQ-7 q10_q10ag ! is_empty(q3_q3b) q3_q3b
SQ-8 q10_q10ah ! is_empty(q3_q3c) q3_q3c
SQ-9 q10_q10ai ! is_empty(q3_q3d) q3_q3d
SQ-10 q10_q10aj ! is_empty(q3_q3e) q3_q3e
SQ-11 q10_q10ak ! is_empty(q4_q4a) q4_q4a
SQ-12 q10_q10al ! is_empty(q4_q4b) q4_q4b
SQ-13 q10_q10am ! is_empty(q4_q4c) q4_q4c
SQ-14 q10_q10an ! is_empty(q4_q4d) q4_q4d
SQ-15 q10_q10ao ! is_empty(q4_q4e) q4_q4e
SQ-16 q10_q10ap ! is_empty(q5_q5a) q5_q5a
SQ-17 q10_q10aq ! is_empty(q5_q5b) q5_q5b
SQ-18 q10_q10ar ! is_empty(q5_q5c) q5_q5c
SQ-19 q10_q10as ! is_empty(q5_q5d) q5_q5d
SQ-20 q10_q10at ! is_empty(q5_q5e) q5_q5e
As I said, this works fine for the y-scale. For the x-scale of the array I have used the exact same relevance equation, but it does not work and the logic is shown as this: (with [VALUE: q10ba] instead of the relevance equation i entered)
A[1]-1 q10ba [VALUE: q10ba] q2_q2a
A[1]-2 q10bb [VALUE: q10bb] q2_q2b
A[1]-3 q10bc [VALUE: q10bc] q2_q2c
A[1]-4 q10bd [VALUE: q10bd] q2_q2d
A[1]-5 q10be [VALUE: q10be] q2_q2e
A[1]-6 q10bf [VALUE: q10bf] q3_q3a
A[1]-7 q10bg [VALUE: q10bg] q3_q3b
A[1]-8 q10bh [VALUE: q10bh] q3_q3c
A[1]-9 q10bi [VALUE: q10bi] q3_q3d
A[1]-10 q10bj [VALUE: q10bj] q3_q3e
A[1]-11 q10bk [VALUE: q10bk] q4_q4a
A[1]-12 q10bl [VALUE: q10bl] q4_q4b
A[1]-13 q10bm [VALUE: q10bm] q4_q4c
A[1]-14 q10bn [VALUE: q10bn] q4_q4d
A[1]-15 q10bo [VALUE: q10bo] q4_q4e
A[1]-16 q10bp [VALUE: q10bp] q5_q5a
A[1]-17 q10bq [VALUE: q10bq] q5_q5b
A[1]-18 q10br [VALUE: q10br] q5_q5c
A[1]-19 q10bs [VALUE: q10bs] q5_q5d
A[1]-20 q10bt [VALUE: q10bt] q5_q5e
Now my question: Why is this happening and how can I get the relevance equation to work for the x-scale too?
Thank you very much in advance!
Attachments:
Last edit: 7 years 2 months ago by MarkusBuchheit.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
7 years 2 months ago #147957
by DenisChenu
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.
Replied by DenisChenu on topic Relevance equation for x-scale in array-numbers question
You can't ... there are no filter in X scale.
Only solution : javascript hack.
You can test this plugin too : framagit.org/SondagePro-LimeSurvey-plugin/hideEmptyColumn .
You need to update some css according to the README : framagit.org/SondagePro-LimeSurvey-plugi...lob/master/README.md
Only solution : javascript hack.
You can test this plugin too : framagit.org/SondagePro-LimeSurvey-plugin/hideEmptyColumn .
You need to update some css according to the README : framagit.org/SondagePro-LimeSurvey-plugi...lob/master/README.md
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: MarkusBuchheit
The topic has been locked.
- MarkusBuchheit
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
7 years 2 months ago #147958
by MarkusBuchheit
Replied by MarkusBuchheit on topic Relevance equation for x-scale in array-numbers question
Thank you very much for your answer. But I am not talking about filters, I am talking about hiding the subanswer using the relevance equation. I mean, why should there be the option to enter a relevance equation if it doesn't take any effect?
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
7 years 2 months ago - 7 years 2 months ago #147964
by DenisChenu
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.
Replied by DenisChenu on topic Relevance equation for x-scale in array-numbers question
Because : if you see 'relevance' part for X (columns) : it's a bug. Relevance/filter never work for X/column, only for line.
I's not clear in the manual manual.limesurvey.org/Question_type_-_Ar...r_.28array_filter.29 . (todo : update manual).
Then alternative solution : use javascript to 'hide' column.
PS : i report the bug about sub-question relevance on X axis : it's a bug. Your right.
PS2 : bug reported bugs.limesurvey.org/view.php?id=12097
I's not clear in the manual manual.limesurvey.org/Question_type_-_Ar...r_.28array_filter.29 . (todo : update manual).
Then alternative solution : use javascript to 'hide' column.
PS : i report the bug about sub-question relevance on X axis : it's a bug. Your right.
PS2 : bug reported bugs.limesurvey.org/view.php?id=12097
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.
Last edit: 7 years 2 months ago by DenisChenu. Reason: bug reported
The following user(s) said Thank You: MarkusBuchheit
The topic has been locked.
- MarkusBuchheit
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
7 years 2 months ago #147968
by MarkusBuchheit
Replied by MarkusBuchheit on topic Relevance equation for x-scale in array-numbers question
Ok, thank you very much for you answer. So I can give up on trying this. In this case, can you explain how I can use javascript for this? I unfortunately have no idea about javascript and I would be enormously grateful if you could just tell me what I have to do where.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
7 years 2 months ago - 7 years 2 months ago #147972
by DenisChenu
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.
Replied by DenisChenu on topic Relevance equation for x-scale in array-numbers question
Hi,
I put a link of a plugin than can help you to have a similar system . Then you must download and intall the plugin .
After some documentation
I put a link of a plugin than can help you to have a similar system . Then you must download and intall the plugin .
After some documentation
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.
Last edit: 7 years 2 months ago by DenisChenu.
The following user(s) said Thank You: MarkusBuchheit
The topic has been locked.
- MarkusBuchheit
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
7 years 2 months ago #147973
by MarkusBuchheit
Replied by MarkusBuchheit on topic Relevance equation for x-scale in array-numbers question
Hi,
I downloaded the plugin, but I can't find a way to install it since I am using limesurvey only in my safari-webbrowser. I am using it in safari because I couldn't find any installation guide to install limesurvey on my mac.
I downloaded the plugin, but I can't find a way to install it since I am using limesurvey only in my safari-webbrowser. I am using it in safari because I couldn't find any installation guide to install limesurvey on my mac.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
7 years 2 months ago #147974
by DenisChenu
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.
Replied by DenisChenu on topic Relevance equation for x-scale in array-numbers question
It's your installation or a hosted services (by LimeSurvey GMBH).
If hosted : you can not import plugin : open a support ticket to LimeSurvey GMBH.
If hosted : you can not import plugin : open a support ticket to LimeSurvey GMBH.
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: MarkusBuchheit
The topic has been locked.
- MarkusBuchheit
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
7 years 2 months ago #147975
by MarkusBuchheit
Replied by MarkusBuchheit on topic Relevance equation for x-scale in array-numbers question
Hi,
thank you very much. I'm using the hosted service so I will open a support ticket. What should I ask for? Will they load the plugin on the server for me?
And is javascript not an option anymore?
thank you very much. I'm using the hosted service so I will open a support ticket. What should I ask for? Will they load the plugin on the server for me?
And is javascript not an option anymore?
The topic has been locked.
- MarkusBuchheit
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
7 years 2 months ago #147998
by MarkusBuchheit
Replied by MarkusBuchheit on topic Relevance equation for x-scale in array-numbers question
Hello,
with the help of Limesurvey Support I have uploaded the .js and .css files to my template and inserted the lines
into startpage.pstpl, but I still can't get it to work properly. Any idea?
I have attached a screenshot of what it looks like now in the template editor.
with the help of Limesurvey Support I have uploaded the .js and .css files to my template and inserted the lines
Code:
<link rel="stylesheet" href="{TEMPLATEURL}hideemptycolumn.css" /> <script type="text/javascript" src="{TEMPLATEURL}hideemptycolumn.js" />
I have attached a screenshot of what it looks like now in the template editor.
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
7 years 2 months ago #148053
by DenisChenu
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.
Replied by DenisChenu on topic Relevance equation for x-scale in array-numbers question
Hi,
After : you must
- Use expression manager to hide X column text : {if(mytest==1,'Text to be shown','')}
Think it must work
After : you must
- Use expression manager to hide X column text : {if(mytest==1,'Text to be shown','')}
Think it must work
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.