- Posts: 56
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Question validation equation didn t save for Array Number structure
- nicolae_stan93
- Topic Author
- Offline
- Senior Member
Less
More
3 years 11 months ago #199396
by nicolae_stan93
Question validation equation didn t save for Array Number structure was created by nicolae_stan93
Hello,
I m trying to add some condition on Question validation equation for Array Number with 22 lines and 10 columns but after I push the Save button the condition didn t get save. This is the condition I added:
(mq_SQ01_SQ01==1 AND (sum(mq_SQ03_SQ01,mq_SQ04_SQ01,mq_SQ05_SQ01,mq_SQ06_SQ01,mq_SQ07_SQ01,mq_SQ08_SQ01,mq_SQ09_SQ01,mq_SQ10_SQ01,mq_SQ11_SQ01,mq_SQ12_SQ01,mq_SQ13_SQ01)))
I mention that I test with array number columns 2, rows 2 and works to add it.
My limesurvey is Version 4.1.8+200302.
I m trying to add some condition on Question validation equation for Array Number with 22 lines and 10 columns but after I push the Save button the condition didn t get save. This is the condition I added:
(mq_SQ01_SQ01==1 AND (sum(mq_SQ03_SQ01,mq_SQ04_SQ01,mq_SQ05_SQ01,mq_SQ06_SQ01,mq_SQ07_SQ01,mq_SQ08_SQ01,mq_SQ09_SQ01,mq_SQ10_SQ01,mq_SQ11_SQ01,mq_SQ12_SQ01,mq_SQ13_SQ01)))
I mention that I test with array number columns 2, rows 2 and works to add it.
My limesurvey is Version 4.1.8+200302.
Attachments:
The topic has been locked.
- nicolae_stan93
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 56
- Thank you received: 0
3 years 11 months ago #199397
by nicolae_stan93
Replied by nicolae_stan93 on topic Question validation equation didn t save for Array Number structure
I also tried on Version 4.2.3+200511 and I encountered the same issue.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12904
- Thank you received: 3968
3 years 11 months ago #199400
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Question validation equation didn t save for Array Number structure
Hi,
1. I could not reproduce; it is saved.
2. Is your equation
(mq_SQ01_SQ01==1) AND (sum(mq_SQ03_SQ01,mq_SQ04_SQ01,...)==111)
In this case your synatx is wrong, if it isn't just a typo.
Joffm
1. I could not reproduce; it is saved.
2. Is your equation
(mq_SQ01_SQ01==1) AND (sum(mq_SQ03_SQ01,mq_SQ04_SQ01,...)==111)
In this case your synatx is wrong, if it isn't just a typo.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- nicolae_stan93
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 56
- Thank you received: 0
3 years 11 months ago #199408
by nicolae_stan93
Replied by nicolae_stan93 on topic Question validation equation didn t save for Array Number structure
Hi,
I think I wrong copy paste on forum.
I took an array number structure with smaller numbers of lines and columns and added condtion and it works, after I added more lines to be 22 lines/rows it didn't work, neither to delete the old condition. So the condition remain blocked there. So after having more numbers of rows (on my case 22) I think the validation (Question validation equation ) remains is nonfunctional.
I think I wrong copy paste on forum.
I took an array number structure with smaller numbers of lines and columns and added condtion and it works, after I added more lines to be 22 lines/rows it didn't work, neither to delete the old condition. So the condition remain blocked there. So after having more numbers of rows (on my case 22) I think the validation (Question validation equation ) remains is nonfunctional.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12904
- Thank you received: 3968
3 years 11 months ago #199412
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Question validation equation didn t save for Array Number structure
So,
please provide the entire validation equation you want to enter.
Joffm
please provide the entire validation equation you want to enter.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- nicolae_stan93
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 56
- Thank you received: 0
3 years 11 months ago #199415
by nicolae_stan93
Replied by nicolae_stan93 on topic Question validation equation didn t save for Array Number structure
sum(tabela1_l2_c1,tabela1_l2_c2,tabela2_l1_c3,tabela1_l2_c4,tabela1_l2_c5,tabela1_l2_c6,tabela1_l2_c7,tabela1_l2_c8,tabela1_l2_c9,tabela1_l2_c10,tabela1_l2_c11,
tabela1_l2_c12,tabela1_l2_c13)==100
tabela1_l2_c12,tabela1_l2_c13)==100
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12904
- Thank you received: 3968
3 years 11 months ago #199419
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Question validation equation didn t save for Array Number structure
Hi,
well this is absolutely different from your first equation.
Here you seem to sum up the values of one subquestion. Before you summed up one column.
Now:
1. Is this correct?
sum(tabela1_l2_c1,tabela1_l2_c2,tabela2_l1_c3,tabela1_l2_c4,tabela1_l2_c5,tabela1_l2_c6,tabela1_l2_c7,tabela1_l2_c8,tabela1_l2_c9,tabela1_l2_c10,tabela1_l2_c11,
tabela1_l2_c12,tabela1_l2_c13)==100
2. Are c1 to c13 all columns?
If yes, why not shorten to "sum(self.sq_I2_c)==100"?
Assuming this I will check your issue later.
Joffm
well this is absolutely different from your first equation.
Here you seem to sum up the values of one subquestion. Before you summed up one column.
Now:
1. Is this correct?
sum(tabela1_l2_c1,tabela1_l2_c2,tabela2_l1_c3,tabela1_l2_c4,tabela1_l2_c5,tabela1_l2_c6,tabela1_l2_c7,tabela1_l2_c8,tabela1_l2_c9,tabela1_l2_c10,tabela1_l2_c11,
tabela1_l2_c12,tabela1_l2_c13)==100
2. Are c1 to c13 all columns?
If yes, why not shorten to "sum(self.sq_I2_c)==100"?
Assuming this I will check your issue later.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12904
- Thank you received: 3968
3 years 11 months ago #199422
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Question validation equation didn t save for Array Number structure
Hi,
So I tested your issue, and found out.
I had to increase the "max_input_vars" in php.ini. I set it to 5000.
Then I see this, which works as desired.
and
Joffm
P.S.
Read about this here
manual.limesurvey.org/ExpressionScript_-....22that.22_variables
So I tested your issue, and found out.
I had to increase the "max_input_vars" in php.ini. I set it to 5000.
Then I see this, which works as desired.
and
Joffm
P.S.
Read about this here
manual.limesurvey.org/ExpressionScript_-....22that.22_variables
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- nicolae_stan93
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 56
- Thank you received: 0
3 years 11 months ago #199427
by nicolae_stan93
Replied by nicolae_stan93 on topic Question validation equation didn t save for Array Number structure
Thank you
The topic has been locked.