Array more than dual scale

More
1 month 2 days ago #159700 by adridg
adridg created the topic: Array more than dual scale
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?

Please Log in to join the conversation.

More
1 month 2 days ago - 1 month 2 days ago #159704 by Joffm
Joffm replied the 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:
http://extensions.sondages.pro/questions-updating-and-managing/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
Attachments:
Last Edit: 1 month 2 days ago by Joffm.

Please Log in to join the conversation.

More
1 month 2 days ago #159711 by adridg
adridg replied the 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".

Please Log in to join the conversation.

More
1 month 2 days ago #159713 by Joffm
Joffm replied the 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

Please Log in to join the conversation.

More
1 month 1 day ago #159724 by adridg
adridg replied the topic: Array more than dual scale
I attached a picture of we need.
I hope now it is clear.
Thank you
Attachments:

Please Log in to join the conversation.

More
1 month 1 day ago #159734 by adridg
adridg replied the 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."

Please Log in to join the conversation.

More
1 month 1 day ago - 1 month 1 day ago #159742 by Joffm
Joffm replied the 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".
https://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
Last Edit: 1 month 1 day ago by Joffm.
The following user(s) said Thank You: adridg

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!