- Posts: 958
- Thank you received: 227
Ask the community, share ideas, and connect with other LimeSurvey users!
lfanfoni wrote: The survey URL should contain also a parameter for keeping track of propagation of responses, and for this I thought to use the SAVEDID as URL field.
/** * Generates a GUID string. * @returns {String} The generated GUID. * @example af8a8416-6e18-a307-bd9c-f2c947bbb3aa * @author Slavik Meltser (slavik@meltser.info). * @link https://slavik.meltser.info/?p=142 */ function guid() { function _p8(s) { var p = (Math.random().toString(16)+"000000000").substr(2,8); return s ? "-" + p.substr(0,4) + "-" + p.substr(4,4) : p ; } return _p8() + _p8(true) + _p8(true) + _p8(); }
Plugin generateUniqIdjelo wrote: LimeSurvey isn't offering a function to generate GUID (global unique IDs) out of the box. I'm not aware of a plugin for LimeSurvey.