I'm using Lime 2.5x and trying to make sure that the user enters a correct 7 digit numeric-only ID number by having them enter it twice and making sure the two match. I'm guessing that this may be best on two separate pages/questions (where the questions are shown one-by-one). Although I can do this with the following verification,
{if(Number1.NAOK == Number2.NAOK,' ','DOES NOT MATCH')}
it works awkwardly since the text warning appears as the participant is tying and does not disappear until after the entire entry is finished and matches with the first entry.
Is there a better way to do this so that the comparison/validation does not occur until after the last of the 7 digits is entered or alternatively, done so that the "doesn't match" warning doesn't appear until after the first incorrect digit is entered ?
strlen(Number2.NAOK)==7 and Number1.NAOK == Number2.NAOK
For tip
Code:
{if(strlen(Number2.NAOK)<7,'need 7 caracter','')}{if(Number1.NAOK != Number2.NAOK,'This id is valid','')}[if(Number1.NAOK == Number2.NAOK,'All is OK, go next','')}
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.