- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Help needed for a non-coder and a weird version of Limesurvey
- AnneBastin13
- Topic Author
- Offline
- New Member
Less
More
5 years 5 months ago #176214
by AnneBastin13
Help needed for a non-coder and a weird version of Limesurvey was created by AnneBastin13
Hi everyone!
I am using a version of Limesurvey that is hosted by the university I work for.
I attached a screenshot (PDF) of what my platform looks like.
I am not able to access the codes for the questions, so I can't create an array with text and drop down for example (which is unfortunate as it is what I would need).
Now I have this question I need to set contraints:
We need initials of (max 9) people plus the relationship (so array text plus drop-down would have been perfect), but I can do array text with 2 columns, as the relationship does not matter in our final results.
The thing is, I need the person that writes initials to give the relationship too, but I can't find codes or constraints for that on my version
I set minimum answers to 2, but I can enter either an answer in 2 different columns (right) or in 2 different rows (wrong) and that simple constraint is satisfied.
How can I set a proper constraint that won't let people write only initials or only relationship?
Plus if I could find something that set "if answered "no one" --> don't let write anything else in the table"
I am very new to coding and I have no idea what I am doing, I need your help!!
Thank you all!
I am using a version of Limesurvey that is hosted by the university I work for.
I attached a screenshot (PDF) of what my platform looks like.
I am not able to access the codes for the questions, so I can't create an array with text and drop down for example (which is unfortunate as it is what I would need).
Now I have this question I need to set contraints:
We need initials of (max 9) people plus the relationship (so array text plus drop-down would have been perfect), but I can do array text with 2 columns, as the relationship does not matter in our final results.
The thing is, I need the person that writes initials to give the relationship too, but I can't find codes or constraints for that on my version
I set minimum answers to 2, but I can enter either an answer in 2 different columns (right) or in 2 different rows (wrong) and that simple constraint is satisfied.
How can I set a proper constraint that won't let people write only initials or only relationship?
Plus if I could find something that set "if answered "no one" --> don't let write anything else in the table"
I am very new to coding and I have no idea what I am doing, I need your help!!
Thank you all!
Attachments:
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
5 years 5 months ago #176221
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Help needed for a non-coder and a weird version of Limesurvey
How about breaking it into ten questions? An array-texts followed by 9 drop-downs. Then you could put minimum-answers on the array and hide/show the drop-downs via relevance.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- AnneBastin13
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
5 years 5 months ago #176246
by AnneBastin13
Replied by AnneBastin13 on topic Help needed for a non-coder and a weird version of Limesurvey
That would be a good idea, but would it make the data more complicated?
My Prof asked me to set it as a single question as it would make it simpler for her that way...
I'm only programming the survey, not analyzing the data for this project.
My Prof asked me to set it as a single question as it would make it simpler for her that way...
I'm only programming the survey, not analyzing the data for this project.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
5 years 5 months ago #176250
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Help needed for a non-coder and a weird version of Limesurvey
How would it make the data more complicated? Every input has a column in the data regardless of whether it's an array text input or a dropdown. Additionally, drop-downs give defined answers which will be far easier to analyze than random text answers.
If you don't have access to JavaScript, I see this as the easiest solution.
If you don't have access to JavaScript, I see this as the easiest solution.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- AnneBastin13
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
5 years 5 months ago #176266
by AnneBastin13
Replied by AnneBastin13 on topic Help needed for a non-coder and a weird version of Limesurvey
It is true. I will try it out and show it to her.
How can I set a condition that will show the drop-down only if the related initials are not null?
I understand I'd look for a code that hides the 9 next questions if something was entered in the "no one" row, and one that shows relationship #1 if person #1 was identified, then #2 if something was written in person #2 and so on.
Such a bad luck that my coding course will only happen next semester!
Thank you!!
Anne
How can I set a condition that will show the drop-down only if the related initials are not null?
I understand I'd look for a code that hides the 9 next questions if something was entered in the "no one" row, and one that shows relationship #1 if person #1 was identified, then #2 if something was written in person #2 and so on.
Such a bad luck that my coding course will only happen next semester!
Thank you!!
Anne
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
5 years 5 months ago - 5 years 5 months ago #176267
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Help needed for a non-coder and a weird version of Limesurvey
The relevance equation for the first relationship dropdown could be something like this (depending on question and sub-question codes):
This effectively says only show this question if the first row in Q1 is empty and the second row is not empty.
Code:
is_empty(Q1_SQ001) AND !is_empty(Q1_SQ002)
This effectively says only show this question if the first row in Q1 is empty and the second row is not empty.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 5 months ago by tpartner.
The topic has been locked.
- AnneBastin13
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
5 years 5 months ago #176270
by AnneBastin13
Replied by AnneBastin13 on topic Help needed for a non-coder and a weird version of Limesurvey
I made it work, thank you so so much!!
Thank you for all your help
Thank you for all your help
The topic has been locked.