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
  • nicolae_stan93's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months ago #199396 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.
The topic has been locked.
  • nicolae_stan93
  • nicolae_stan93's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months ago #199397 by nicolae_stan93
I also tried on Version 4.2.3+200511 and I encountered the same issue.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #199400 by Joffm
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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • nicolae_stan93
  • nicolae_stan93's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months ago #199408 by nicolae_stan93
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.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #199412 by Joffm
So,
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
  • nicolae_stan93's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months ago #199415 by nicolae_stan93
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
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #199419 by Joffm
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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 11 months ago #199422 by Joffm
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

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • nicolae_stan93
  • nicolae_stan93's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 11 months ago #199427 by nicolae_stan93
Thank you
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose