Hi,
in a suryvey I have a larg amount of pictures, where the user should select exactly 9 pictures, and later on sort his favourite three. This all works fine. But as the error message, I needed something different, which I achived by changing the "Question validation equation" to
Code:
count(self.NAOK) == 9
and the "Question validation tip" to
Code:
{if(count(self.NAOK)<9,"You have chosen ")}{if(count(self.NAOK)<9,count(self.NAOK))}
{if(count(self.NAOK)<9," of 9 required pictures!")}
{if(count(self.NAOK)==9,"Many thanks for selecting the pictures. You can continue at the bottom of this page!")}
{if(count(self.NAOK)>9,"You selected too many (")}{if(count(self.NAOK)>9,count(self.NAOK))}
{if(count(self.NAOK)>9," of 9) pictures.<br>Please deselect be klicking on the pictures!")}
which works as expected. But having a small experiemce in programming, I personally would have liked to use "if/then/else" statements or a way to have the displayed text and the count(self.NOAK) evaluation in _one_ statement for better readability. Don't get me wrong: I am "pleased as a Punch" as a newbie in LimeSurvey wich I am, and many thanks for enabling this way. I just wanted to ask for a "cleaner" way - if possible - so that I stay on track. LimeSurvey version 3.25.5 used.
many thanks in advance
Juergen