- Posts: 38
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array more than dual scale
- adridg
- Topic Author
- Offline
- Junior Member
Less
More
6 years 5 months ago #159700
by adridg
Array more than dual scale was created by adridg
I need an array question with one colum with fixed number values for each line and three ou four more coluns. These colums would be text enter.
Is it possible?
Or any other option I could use?
Is it possible?
Or any other option I could use?
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12791
- Thank you received: 3941
6 years 5 months ago - 6 years 5 months ago #159704
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Array more than dual scale
Hi,
the very easy way to achieve what you like to have, is: Array(text)
And your first column is restricted to fixed numbers by validation.
Or you try the plugin arraytextadapt:
extensions.sondages.pro/questions-updati...aging/arraytextadapt
First column as dropdown with your numbers, rest text
Or you have a look at the demo survey "Inline questions".
If you do not find it in the sample surveys of the manual. I attach it.
Best regards
Joffm
the very easy way to achieve what you like to have, is: Array(text)
And your first column is restricted to fixed numbers by validation.
Or you try the plugin arraytextadapt:
extensions.sondages.pro/questions-updati...aging/arraytextadapt
First column as dropdown with your numbers, rest text
Or you have a look at the demo survey "Inline questions".
If you do not find it in the sample surveys of the manual. I attach it.
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 6 years 5 months ago by Joffm.
The topic has been locked.
- adridg
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
6 years 5 months ago #159711
by adridg
Replied by adridg on topic Array more than dual scale
thank you for your answer.
And going to the same direction, how can I do this:
in an array text question I need do break the column where are the subquestions as the "y-axis".
And going to the same direction, how can I do this:
in an array text question I need do break the column where are the subquestions as the "y-axis".
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12791
- Thank you received: 3941
6 years 5 months ago #159713
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Array more than dual scale
Well, that's a bit confusing now. I should say:
In an array(text) yoou are free to name the rows and columns.
Therefore: please, explain more clearly. (sample survey, drawing, etc.)
Joffm
In an array(text) yoou are free to name the rows and columns.
Therefore: please, explain more clearly. (sample survey, drawing, etc.)
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- adridg
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
6 years 5 months ago #159724
by adridg
Replied by adridg on topic Array more than dual scale
I attached a picture of we need.
I hope now it is clear.
Thank you
I hope now it is clear.
Thank you
Attachments:
The topic has been locked.
- adridg
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 0
6 years 5 months ago #159734
by adridg
Replied by adridg on topic Array more than dual scale
I know this is stupid and basic, but I do this validation?
thank you again
Your answer was:
"the very easy way to achieve what you like to have, is: Array(text)
And your first column is restricted to fixed numbers by validation."
thank you again
Your answer was:
"the very easy way to achieve what you like to have, is: Array(text)
And your first column is restricted to fixed numbers by validation."
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12791
- Thank you received: 3941
6 years 5 months ago - 6 years 5 months ago #159742
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Array more than dual scale
Hello,
Question code is Q1.
X-Scale is "X1, X2, X3..."
Y-Scale is "Y1, Y2, Y3..."
So, if you want the first column (X1) to be numeric, you use the function "is_numeric".
manual.limesurvey.org/Expression_Manager#Implemented_Functions
In this case you enter in question validation equation.
(is_numeric(Q1_Y1_X1)) AND (is_numeric(Q1_Y2_X1)) AND (is_numeric(Q1_Y3_X1))...
Furthermore you can enter a message about this like "first column must be numeric" in question validation tip
If you want to allow only specific values (whole numbers 1-10) you have to add this to the validation, like
Only whole numbers: is_int instead of is_numeric.
It will be a bit longer like:
(is_int(Q1_Y1_X1) AND (Q1_Y1_X1>0) AND (Q1_Y1_X1<11)) AND (same for Y2, Y3,...)
Of course you can use a regular expression like /^[0-9]{1,2}$/ for numbers between 0 and 99.
Best regards
Joffm
Question code is Q1.
X-Scale is "X1, X2, X3..."
Y-Scale is "Y1, Y2, Y3..."
So, if you want the first column (X1) to be numeric, you use the function "is_numeric".
manual.limesurvey.org/Expression_Manager#Implemented_Functions
In this case you enter in question validation equation.
(is_numeric(Q1_Y1_X1)) AND (is_numeric(Q1_Y2_X1)) AND (is_numeric(Q1_Y3_X1))...
Furthermore you can enter a message about this like "first column must be numeric" in question validation tip
If you want to allow only specific values (whole numbers 1-10) you have to add this to the validation, like
Only whole numbers: is_int instead of is_numeric.
It will be a bit longer like:
(is_int(Q1_Y1_X1) AND (Q1_Y1_X1>0) AND (Q1_Y1_X1<11)) AND (same for Y2, Y3,...)
Of course you can use a regular expression like /^[0-9]{1,2}$/ for numbers between 0 and 99.
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 6 years 5 months ago by Joffm.
The following user(s) said Thank You: adridg
The topic has been locked.