Hi Shashi, Thank you for that response, that must be the easiest way of getting this done. Actually, I can't believe I didn't see this there (I did look, but somehow missed it). Thanks again, great advice!
Hello @sankeskumar, Thank you for responding to me question! If I am reading your java code correctly, it will pull the first two characters of the first and last name, then do same for dob, and then put it together as the full ID, and test to see if meets criteria. What I need is slightly different, I have 4 questions each with a textbox. First is the first name, then lastname, then the dob month and day fields. The user is asked to input only two characters for each of the textboxes. What I have to do is to pull the Question ID and test that the input is character or numeric, and that it is exactly two characters long. For character validation it is something like this: Qualtrics.SurveyEngine.addOnUnload(function() { /*Place your JavaScript here to run when the page is unloaded*/ var value1 = this.questionId; if (value1.search(/[^a-zA-Z]+/)) { alert("There are non characters."); } }); This works except it seems to examine every field on the page, so I will need to limit it t
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.