- Posts: 1
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
8 years 6 months ago #125858
by cipave
Calculations in array number with text input was created 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.
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.
Attachments:
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
8 years 6 months ago #125871
by Mazi
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
Replied by Mazi on topic Calculations in array number with text input
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11746
- Thank you received: 2750
8 years 6 months ago #125879
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Calculations in array number with text input
What is going on here? Same question from different users?
www.limesurvey.org/en/community-services...th-text-input#125876
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.
- rgiacolst
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
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
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.