Hi all,
I'm working in v8 and need to get respondents to enter a long passcode. To make this easier than just a big long Open End box, I'd like to format it such that it splits up like this: A 4-digit box, followed by a dash, another 4-digit box, a dash, and a 6-digit box. All side-by-side, and once they enter the right # digits, the cursor advances to the next box.
I've found JavaScript to do this for web forms (see below), and it worked, but I don't know how to make it an Open End question that is saved in the data file AND make it required before they can advance. Any ideas?
Please enter the 16-digit survey code located on your receipt.</p>
<input type="text" id="CN1" name="CN1" title="CN1" maxlength="4" style="width:4.32em;" value="" onkeyup="return autoTab(this, 4, event);"/>
-
<input type="text" id="CN2" name="CN2" title="CN2" maxlength="4" style="width:4.32em;" value="" onkeyup="return autoTab(this, 4, event);"/>
-
<input type="text" id="CN3" name="CN3" title="CN3" maxlength="6" style="width:4.32em;" value=""/>