Since the radio button groups were giving me so much trouble I switched to using a dropdown list and I was able to work with that. So to select the first item in a dropdown list using jQuery you would use something like: jQuery( "select[name='QR\\~QID2']" ).val(1); // where val(1) is the first value in the dropdown list, val(2) would be the second, etc. ...and to reset to the empty/null value simply change the 'value' in the above line to: jQuery( "select[name='QR\\~QID2']" ).val(0); // .val(-1) also seemed to work the same way
> @TomG said: You'll need to use both. So I'm assuming it involves parsing out the labels associated with the radio buttons and changing the inline styles on the input label class from <label class='q-radio q-checked' ... AND the label wrapper inline class from <label class='SingleAnswer q-checked' ... to <label class='q-radio' ... AND <label class='SingleAnswer' ... I am hoping there is a better way.
> @Julie_130 said: I need a little more hand-holding Post an example of what is wrapping that you do not want to wrap. The CSS would go under the Look and Feel / Advanced / Add Custom CSS. Depending on what you need it might simply look like: .Slider th.ylabel{ white-space: nowrap !important; }
> @TomG said: but it is complicated. I don't mind complicated so much, I would simply like to be able to make it work. Does the solution require raw javascript or is jQuery able to do the job?
The wrapping thing should be resolved using CSS. Simply add some CSS to your survey to overwrite the default CSS for the slider element you want to prevent from wrapping. As for the custom coding, click the link to 'JS Question API' under the 'Edit question javascript' box to see some sample code using the API.
If you know how to parse the survey JSON file (that can be downloaded using Tools / Import/Export /Export Survey), the .qsf file is JSON formatted and contains EVERYTHING about the survey. It is the data dictionary (but you will just have to parse it and format it to meet your needs). This reference helped me when I was trying to do the same thing: https://gist.github.com/ctesta01/d4255959dace01431fb90618d1e8c241
To reset the translation progress, download the translation file from Qualtrics (via the Survey/Tools/Translate Survey.../Download translation option). Open the file in your text editor. If your survey is in English for example and you have a Spanish translation you wish to reset to 0% complete then delete the Spanish text (or whatever you have under the Spanish column) for the question or answer you want the reset progress on. For example if you had response option 'QID275_Answer1' that has the Spanish translation for 'Yes' set to 'Yep' like so in the translation file: PhraseID EN ES QID275_Answer1 Yes Yep ... you would simply remove the 'Yep' text under the ES (Spanish) column and then re-upload the translation to Qualtrics. PhraseID EN ES QID275_Answer1 Yes
You don't need javascript for this. This post probably has what you need: https://qualtrics.com/community/discussion/300/inline-email-question
Are you using the web service in the survey flow to get the responses posted back to a PHP app. when a user fills out a survey or other?
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.