table of numbers

More
2 months 3 weeks ago #157264 by mperriello
mperriello created the topic: table of numbers
Hi, I would like to ask your help about the following.

I built an “Array (texts)” question with subquestions to enter financial data.
Say it’s a table with rows:
• Subquest-x-1
• Subquest-x-2
• Subquest-x-3
and columns:
• Subquest-y-1
• Subquest-y-2
• Subquest-y-3.

I just want to set to “not relevant” the cells:
• “Subquest-x-1” – “Subquest-y-2”
• “Subquest-x-1” – “Subquest-y-3”
that is I don’t want the participant to fill in those cells.
How can I make it? I see there’s the possibility to set a “Relevance equation” on the subquestions,
but I can’t figure out how to write this particular one.

Another question: is the “Array (texts)” the best way to build a table of numbers?
Actually I don’t see tables with columns in the examples of “Multiple numerical input”.
Thanks in advance

Please Log in to join the conversation.

More
2 months 3 weeks ago - 2 months 3 weeks ago #157292 by Joffm
Joffm replied the topic: table of numbers
Well, my first idea was to use an "array (numbers)", if I want to enter numbers.
Last Edit: 2 months 3 weeks ago by Joffm.
The following user(s) said Thank You: LouisGac

Please Log in to join the conversation.

More
2 months 3 weeks ago #157294 by mperriello
mperriello replied the topic: table of numbers
But Array (numbers) gives only the possibility of entering numbers with dropdown boxes; I don't need that, I need to enter "free" numbers...

Please Log in to join the conversation.

More
2 months 3 weeks ago #157300 by tpartner
tpartner replied the topic: table of numbers
You can use JavaScript to remove those inputs but that doesn't help if the question is mandatory.

In that case, the only solution I see is to break the question up into several multiple numerical input questions.

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

Please Log in to join the conversation.

More
2 months 3 weeks ago - 2 months 3 weeks ago #157301 by Joffm
Joffm replied the topic: table of numbers
Hi, mperiello,
of course you can add numbers.

Please set in "advanced settings" "text input": ON

As described in the manual: https://manual.limesurvey.org/Question_type_-_Array_(Numbers)

Text inputs (input_boxes)

Description

Show a text input and not a dropdown. Step is not used , minimum and maximum value is used.



Your main problem:
Only if the question is not mandatory:
In "Question validation equation:" set something like:
(is_empty(self.sq_SQ001_A1)) AND (is_empty(self.sq_SQ003_A2)) ... (first cell, first row and second cell, third row)

To fake the mandatory style you can add that all other cells must be filled, e.g. "AND (!is_empty(self.sq_SQ001_A2))..."

Regards
Joffm
Attachments:
Last Edit: 2 months 3 weeks ago by Joffm. Reason: Ergänzung

Please Log in to join the conversation.

More
2 months 1 day ago #157788 by mperriello
mperriello replied the topic: table of numbers
Thanks for your answer, I will try

Please Log in to join the conversation.

More
2 months 1 day ago #157789 by mperriello
mperriello replied the topic: table of numbers
thanks for your answer

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now