Welcome to the LimeSurvey Community Forum

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

Calculations in array number with text input

  • cipave
  • cipave's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #125858 by cipave
I need some help on how to proceed in the following question (image attached for better understanding).

I have a number array with text input represented by the image attached.

Necessary that the fields highlighted in yellow, have the input of data disabled.

These disabled fields will be automatically populated as follows (for easy reference by the lines will start by the letter and the speakers at start number):

A1 = B1 + C1
A2 = B2 + C2
A3 = A1 / A2
A4 = 100.0

B3 = B1 / B2
B4 = (B1 / A1) * 100

C1 = D1 + E1
C2 = D2 + E2
C3 = C1 / C2
C4 = (C1 / A1) * 100

D3 = D1 / D2
D4 = (D1 / C1) * 100

E3 = E1 / E2
E4 = (E1 / C1) * 100

I searched the forum and found some solutions in javascript, but I have no knowledge of javascript and also did not identify any similar question in the forum who could try to fit my needs.

If anyone can help solve, right now I'm grateful.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 6 months ago #125871 by Mazi
This sounds rather complex. I recommend hiding the yellow fields using JavaScript (please provide a link to an activated sample survey if you need help with this).

For each calculation I recommend to use a question of type "equation" which can refer to the single fields. You can add these to the next question group.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #125879 by holch
What is going on here? Same question from different users?
www.limesurvey.org/en/community-services...th-text-input#125876

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
8 years 5 months ago #125909 by rgiacolst
Replied by rgiacolst on topic Calculations in array number with text input
Holch

It is the same question, but this was opened by a colleague. We can disregard this and keep the other post.
Thank you
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose