Welcome to the LimeSurvey Community Forum

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

Set validation rule for one cell of an array to be less than a cell in another

  • pejman
  • pejman's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 months ago #146067 by pejman
Hi everyone,

Suppose that we have two similar number array questions (3x1) named: G1Q1 and G1Q2.
I will fill G1Q1 with desired numbers then I want a validation rule to force G1Q2(2,1) to be always less than G1Q1(2,1).
how can I set this rule?

Thank you in advance for your help.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 4 months ago #146070 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: pejman
The topic has been locked.
  • pejman
  • pejman's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 4 months ago #146073 by pejman
Dear Denis,

Thank you it's fixed.
Actually I did test your recommendation before posting my question and it was not working. the same worked as soon as I put something in "Sub-question validation tip".

Merci.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 4 months ago #146076 by DenisChenu
? Not tip Sub-question validation only .... or you made an error somewhere

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • pejman
  • pejman's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #146120 by pejman
Hi Denis,

Actually my validation rule was: G1Q2_2_1.NAOK == G1Q1_2_1.NAOK before I come and ask in forum but this also did not raise red alarm when two fields were not similar.
I have put your suggestion and this also didn't work till I put something in TIP field. frankly I am not sure if I did change anything else as I was playing with the rules.
Finally it's OK and I am satisfied with the result :)
Thank you again.

Pejman
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #146130 by DenisChenu
Oups :blush: sorry .... totally right : if you put only something in Sub-question validation, but nothing in tip : no 'alert' :)

Thanks for explaination :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: pejman
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose