- Posts: 18
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
having trouble with an equation-type
- thamires.costa
-
Topic Author
- Offline
- New Member
-
Less
More
1 year 2 weeks ago #225744
by thamires.costa
having trouble with an equation-type was created by thamires.costa
Good afternoon,
We're having trouble with an equation-type question that we copied from another valid survey and couldn't find the solution. I believe the problem might in the lime, so we ask for assistance directly here. To explain it properly:We have a numerical type question for age "age" and an equation type question to group these values "agegroup".
The agegroup code is showing as valid, and both questions were copied from a survey whose database came 100% correct). Although the "agegroup" code is valid, the respective column in the database is coming with the full equation instead of the arguments (or empty). Plus the quotas are not recognizing the arguments.
Both questions are set up identically as in the successful survey. What would be the error in this case and a possible solution? Could it be a mistake by limesurvey itself?
The settings:
"age" [Type:Numeric input Mandatory:Yes Relevance equation:1 Minimum value:16 Maximum characters:2 Maximum value:99] and a grouping"agegroup" [Question: agegroup=if(age.NAOK > 59, ">=60", if(age.NAOK > 44, "45-59", if(age.NAOK > 34, "35-44", if(age.NAOK > 24, "25-34", if(age.NAOK > 17, "18-24"))))) Type:Equation Mandatory:Yes Relevance equation:1 Always hide this question:1].Thanks!
Your LimeSurvey version: Versão 3.19.1+191009
We're having trouble with an equation-type question that we copied from another valid survey and couldn't find the solution. I believe the problem might in the lime, so we ask for assistance directly here. To explain it properly:We have a numerical type question for age "age" and an equation type question to group these values "agegroup".
The agegroup code is showing as valid, and both questions were copied from a survey whose database came 100% correct). Although the "agegroup" code is valid, the respective column in the database is coming with the full equation instead of the arguments (or empty). Plus the quotas are not recognizing the arguments.
Both questions are set up identically as in the successful survey. What would be the error in this case and a possible solution? Could it be a mistake by limesurvey itself?
The settings:
"age" [Type:Numeric input Mandatory:Yes Relevance equation:1 Minimum value:16 Maximum characters:2 Maximum value:99] and a grouping"agegroup" [Question: agegroup=if(age.NAOK > 59, ">=60", if(age.NAOK > 44, "45-59", if(age.NAOK > 34, "35-44", if(age.NAOK > 24, "25-34", if(age.NAOK > 17, "18-24"))))) Type:Equation Mandatory:Yes Relevance equation:1 Always hide this question:1].Thanks!
Your LimeSurvey version: Versão 3.19.1+191009
Please Log in to join the conversation.
1 year 2 weeks ago #225753
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic having trouble with an equation-type
Can you attach a small sample survey (.lss file) containing only the relevant 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.
- thamires.costa
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
1 year 2 weeks ago #225758
by thamires.costa
Replied by thamires.costa on topic having trouble with an equation-type
Yes, here it is.
Please Log in to join the conversation.
1 year 2 weeks ago - 1 year 2 weeks ago #225759
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic having trouble with an equation-type
Hi,
Tony - and we all - always ask for a lss file (with only the relevant questions)
Reason:
1. lsq (q=question) and lsg (g=group) exports are language sensitive.
You can't import such an export into a survey with a different base language.
So we have to guess the base language of your export, create a survey to be able to import it.
And only the lss export contains some general settings that might be important. (e,g, the quotas)
Please, ease our live.
2. It is obvious that we cannot go through a survey with more than 100 question to find the one with the issue.
To do this, copy your survey, remove all groups and questions not related to the problem and attach this as lss export.
Joffm
Tony - and we all - always ask for a lss file (with only the relevant questions)
Reason:
1. lsq (q=question) and lsg (g=group) exports are language sensitive.
You can't import such an export into a survey with a different base language.
So we have to guess the base language of your export, create a survey to be able to import it.
And only the lss export contains some general settings that might be important. (e,g, the quotas)
Please, ease our live.
2. It is obvious that we cannot go through a survey with more than 100 question to find the one with the issue.
To do this, copy your survey, remove all groups and questions not related to the problem and attach this as lss export.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 year 2 weeks ago by Joffm.
Please Log in to join the conversation.
- thamires.costa
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
1 year 2 weeks ago #225762
by thamires.costa
Replied by thamires.costa on topic having trouble with an equation-type
It's OK. Here's Iss.
Sorry for the confusion.
Sorry for the confusion.
Please Log in to join the conversation.
- thamires.costa
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
1 year 2 weeks ago #225763
by thamires.costa
Replied by thamires.costa on topic having trouble with an equation-type
Sorry for the mistake again. Here is the file as you asked.
Please Log in to join the conversation.