Hi all ...
Here's the problem: a heap of codes representing places (so we have a start point of a journey and an end point). We then work out the distance travelled. We take the time that the respondent said the journey took and the mode of transport they say they used. We then use this information to ascertain whether the journey as reported is physically possible. If not, we ask the interviewer (this will be an interviewer-assisted survey) to confirm the inputs with the respondent. Once all inputs are confirmed, the interviewer can then click a code and continue (even if the respondent doesn't want to change anything - at least we have it flagged as checked). The respondent can have multiple journeys and there are a heap of places they can travel between.
My first thought was that I'd need to build this in perl - but of course perl code of this magnitude will slow the survey to a crawl because there would need to be a lot of checking back with the server. But if a table were built using javascript, it shouldn't slow things down much at all.
Problem is that I don't know enough javascript to hang myself with. I just know enough for simple validations etc.
Has anyone done anything like this before? And can you point me in the right direction? I'm more than happy to pay the Sawtooth guys to write it for me if necessary, but it'd be great if I could learn something new and do it myself ...
Thanks in advance. Oh - we're on 8.2.2, and the survey will be on tablets using mobile broadband.
Using javascript to compute - over a LOT of variables
Resolved
1 reply