Why do those link hrefs have an [email protected] inserted into them?
Hi TomG - thanks for this tip. I'm wondering if you can guide me a little more. I created a new question with the type select box. I entered a few choices to work with. Next i clicked the "add javascript" option to the question and pasted in the code recommended. See attached screen capture. ![] ! The class name that Qualtrics calls on the form for the select box is ChoiceStructure Selection QR-QID38 QWatchTimer So i replaced this code in your example // In your Javascript (external .js resource or <script> tag) $(document).ready(function() { $('.js-example-basic-single').select2(); }); With this code // In your Javascript (external .js resource or <script> tag) $(document).ready(function() { $('.ChoiceStructure Selection QR-QID38 QWatchTimer').select2(); });
Hey Christxy, yes I already have the autocomplete working based on the post you referenced. I am looking for an extension to validate the field to ensure they only actually enter one of the options in the autocomplete. There was a suggestion by TomG that i am going to try to do this. Thanks!
As a follow up to this request, is there a way to keep the user from typing in a value in the text box if it doesn't match one of the option in the auto complete? This is the code i'm using: Qualtrics.SurveyEngine.addOnload(function() { /*Place your JavaScript here to run when the page loads*/ }); Qualtrics.SurveyEngine.addOnReady(function() { var textOptions = [ "Michael Adams","Jon Amster","Mike Adang","Jill Anderson","Norris Armstrong" ]; jQuery('.QR-' + this.questionId).autocomplete({source:textOptions}) }); Qualtrics.SurveyEngine.addOnUnload(function() { /*Place your JavaScript here to run when the page is unloaded*/ }); Works great - when the user begins typing in the text area, it pulls up any match to the letters they type. But if they just type in "foo" for instance, they are allowed to submit it. I am trying to restrict it so they have to choose an entry available in the autocomplete only. Anyways to enforce this?
Already have an account? Login
Enter your username or 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.