Hi, now I included the termination.
1. Set a hidden single punch question (I called it QQuota) with three answer options:
0 = okay
1 = termination (all datasets were answered)
2 = no rights (somebody tried to open the questionnaire directly)
2.a. In an equation set
{QQuota=if(intval(dmax) lt intval(dsno),1,0)}
if the amount of datasets is smaller then the actual dataset number, set the value to "1" otherwise to "0".
2.b. If there is none of the expected parameters in the survey link, like dsno, token, dmax, set the value of the question to "2".
Then there are two quotas to screen out the participants which have
the value "1" with an appealing text like "Thank you very much; these were all our questions."
the value "2" with a text like "You have no rights to enter the survey"
Otherwise you can direct to a third part of the survey with some general questions at the end.
Something else:
Till now I displayed the name of the dataset by micro-tayloring (see my last post).
There is an other option.
Create a question "huge text". (I called it "DocuName")
As default answer, enter your datasets (with a well defined start to be able to do a search):
CC000101This is dataset 1 of customer 1
CC000102This is dataset 2 of customer 1
CC000103This is dataset 3 of customer 1
...
CC012326This is dataset 26 of customer 123
CC012327This is dataset 27 of customer 123
CC012328This is dataset 28 of customer 123
All texts have the same length, fill with blanks (easily done in EXCEL)
Now knowing the customers number and the actual dsno, you cut the name out of this text.
1st equation (called eqNeedle) to create the "needle", the correct CC-value.
{join("CC",if(strlen(custno)==1,"000",if(strlen(custno)==2,"00",if(strlen(custno)=
,"0",""))),custno,if(strlen(dsno)==1,"0",""),dsno)}
The if-statements to leftpad with "0" only because the function pad doesn't work for leftpadding.
2nd equation to cut the string:
{trim(substr(DocuName,8+stripos(DocuName,eqNeedle),50))}
You see, there is always a fixed length of "50", and the blanks at the right are removed by "trim".
If somebody thinks it is of use...
By the way: In the video I changed the wording of the "submit"-Button to "Next" as described here
www.limesurvey.org/forum/can-i-do-this-w...utton-to-next-button
Joffm