At work we use SNAP survey software. The software is capable of
outputting a survey as a web page, in HTML, which we can tart up with
Javascript for basic form validation if required. When the page is
put onto the web, replies are sent back to an individual as form data
and can be imported into the main package.
We have a large survey on the go which we hope to get several people
inputting into. In addition to the web survey there will be several
thousand paper forms needing to be entered. One way of doing this
would be to create an HTML file and staff can then call this up on
their PCs and input data into the web page (which would be on our
local intranet).
The bugbear about this is that with an HTML page you have to use a
mouse to click on checkboxes, radio buttons etc. In the SNAP software
itself you can use the keyboard, by pressing 1 for the radio button in
a question, 2 for the second one, etc, and using the keyboard in this
way is much faster than clicking with the mouse all the way down the
screen.
I am wondering if there is an easy Javascript routine I could employ
so that upon a keypress being made whilst focus was on a radio button
question, or checkbox question, the element corresponding to that
number would be checked. Also it would be nice if the zero key could
be used on a radio button question to blank all the radios for that
question (which is impossible just for one question using the mouse).
Also, that the enter/return key could be used to jump from one
question to the next.
I appreciate that to provide a complete answer to the above would
require a knowledge of how SNAP constructs the question and the
variables it uses, but if anyone could get me started on the right
road it would be appreciated.
If a respondent wishes me to go into detail on how SNAP does its
information handling for HTML files, I would of course be happy to do
this.
Would anyone be able to provide any advice, please?
Steve Wylie