Hi,
taking your example "?AID=1,3,5,6,7,50"
you have a question of type "short text" called "AID" that contains a string "1,3,5,6,7,50".
At the moment only you know what it means.
But in your second survey you may use this string to show/hide/pipe everything you want
Let's have an example.
In the first survey there is a array question (Q1) where 6 brands are rated (1-5)
In your second survey you want to display in amultiple question only the brands rated 4 or 5.
So I would create the parameter in a question of type equation (eqRate) like
{join(if(Q1_SQ001>3,"1","0"),if(Q1_SQ002>3,"1","0"),if(Q1_SQ003>3,"1","0"),if(Q1_SQ004>3,"1","0"),if(Q1_SQ005>3,"1","0"),if(Q1_SQ006>3,"1","0"))}
eqRate will look like this "101001"
and you create the end-url "....?P1={eqRate}"
In your second survey you capture thisparameter in the question "P1"
And as you know that "1" means "rated 4-5" you can display the subquestions in the second survey like
1st subquestion: substr(P1,0,1)=="1"
2nd subquestion: substr(P1,1,1)=="1"
3rd subquestion: substr(P1,2,1)=="1"
....
In your first example it is really difficult to get certain informations out of this string
"strpos()" will fail because "5" and "50"
You could surround by comma ",1,3,5,6,7,50,"
Now yocanuse "strpos", like
1st subquestion: strpos(P1;"1,")>0
The first comma avoids a result of "0" which also means "not found"
And this way you can distinguish between
strpos(P1;"5,")>0 (without the comma this would also find "15" or "50"
strpos(P1;"50,")>0
At the end:
I would always try to have a well defined structure of the parameters.
E.g. numerical inputs you can leftpad with "0" and the join to something like "012005123056002". Later you easily split into the 5 numbers (again with "substr")
And without a real example it is difficult.
You should send the lss exports of prototypes of the first and second survey.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless