Hello,
I have a question about passing the argument via URL. I use Version 3.22.25+200706 of LimeSurvey
One of our users created a survey and add a question (List radio type) code like this:
Code:
Could you tell me something {TOKEN:ATTRIBUTE_2} about this?
Next, she adds attributes (1 and 2), nextly was added Survey participants finally activate the survey.
After a couple of hours of an active survey we observed the problem with responses and find out that problem is with variable passed via URL:
Code:
https://SURVEY_URL/index.php/SURVEY_ID?lang=en&token=TOKEN_TO_SURVEY&SURVEY_IDXGROUP_IDXQUESTION_ID=SOME_VALUE
The problem was with
SURVEY_IDXGROUP_IDXQUESTION_ID=SOME_VALUE
If we use this notation. Survey accepts only string/number with 5 characters, example:
https://SURVEY_URL/index.php/SURVEY_ID?lang=en&token=TOKENTOSURVEY&SURVEY_IDXGROUP_IDXQUESTION_ID=12345
https://SURVEY_URL/index.php/SURVEY_ID?lang=en&token=TOKENTOSURVEY&SURVEY_IDXGROUP_IDXQUESTION_ID=ABCDE
If we use a string with more characters this cause a problem:
Code:
500 -> While the webserver was processing the query, an internal error occurred.
DevTools says -> Failed to load resource: the server responded with a status of 500 ()
But when I changed the URL and deleted SURVEY_ID and GROUP_ID. The survey works fine.
https://SURVEY_URL/index.php/SURVEY_ID?lang=en&token=TOKENTOSURVEY&QUESTION_ID=SOME_VALUE
This is confusing to me because I didn’t find any errors in the server log?
My question is how we should pass variables?
A) https://SURVEY_URL/index.php/SURVEY_ID?lang=en&token=TOKENTOSURVEY&SURVEY_IDXGROUP_IDXQUESTION_ID=12345

https://SURVEY_URL/index.php/SURVEY_ID?lang=en&token=TOKENTOSURVEY&QUESTION_ID=12345
C) https://SURVEY_URL/index.php/SURVEY_ID?lang=en&token=TOKENTOSURVEY (this also works for this survey)
D) Another way?