Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

table of numbers

  • mperriello
  • mperriello's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #157264 by mperriello
table of numbers was created by mperriello
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
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #157292 by Joffm
Replied by Joffm on topic table of numbers
Well, my first idea was to use an "array (numbers)", if I want to enter numbers.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 3 months ago by Joffm.
The topic has been locked.
  • mperriello
  • mperriello's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #157294 by mperriello
Replied by mperriello on 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...
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #157300 by tpartner
Replied by tpartner on 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.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #157301 by Joffm
Replied by Joffm on 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: www.limesurvey.org/manual/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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 7 years 3 months ago by Joffm. Reason: Ergänzung
The topic has been locked.
  • mperriello
  • mperriello's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #157788 by mperriello
Replied by mperriello on topic table of numbers
Thanks for your answer, I will try
The topic has been locked.
  • mperriello
  • mperriello's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #157789 by mperriello
Replied by mperriello on topic table of numbers
thanks for your answer
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose