Hi,
this is related to
this question in the French forum.
I created a survey and added some JavaScript to those questions, based on
this workaround for the random choice of questions.
That LSS file specifies, among many other things, the survey ID, as well as the IDs of groups and questions.
When I export my survey as an LSS file, delete the existing survey, and reimport it, only the survey ID is untouched. All other IDs have changed.
This means that my JavaScript logic must be updated after the import, to reflect the new GIDs and QIDs.
Is this a bug, a limitation, what have I done wrong?
Here is how I would like to use the IDs in LimeSurvey:
- Each of my surveys has a code (outside LimeSurvey), such as: 7788
- Each survey is assigned a survey ID in the LSS file
- ALL the IDs in a survey use that code as a prefix, so my GIDs and QIDs will all be of the form 7788XXXXX (it seems the SQL length limit on IDs is 11 digits)
- Therefore it is pretty important that the IDs match what is in the LSS file.
Thanks,
Bdizzle
Ooooooops I think I posted in the wrong forum section.