Thank you, Tom!
This is a great answer. I've tried delaying a slider question. However, the problem is that when the slider appears (after 20 seconds) the slider is "cut". It looks as if the values had been reduced to 0-1, while the slider is set to be 0-100. The problem disappears when I remove the javascript code (above). Is there a way to have the code "show" the entire slider (instead of cutting it)? Thank you!Two images to clarify: With delay (in JS) what appears is: Without delay (in JS):
Sorry, I found my error. Thanks!
Hi Cathaya, I am posting the js below. I'm not sure it is what you wanted exactly, but I think it worked for me. Here's an image: ! Here's the code: Qualtrics.SurveyEngine.addOnReady(function() { /*Place your JavaScript here to run when the page is fully displayed*/ var that=this.questionId; jQuery("[id='"+that+"~2~holder']").addClass("activated"); jQuery("[id='"+that+"~1~holder']").addClass("activated"); var p= Math.round(jQuery("[id='"+that+"~1~track']").width()/100); jQuery("<p id='customid' style='width:100%; margin-bottom:10px; text-align: center'> \\ <br> <br> <strong> \\ After worker 1 works TODAY, <br> she/he </strong> keeps <span id='currA'>100</span> tokens, \\ worth $0.10 each. She gets <strong><u>$<span id='totalA'>10</span></u> \\ TODAY.</strong></p>").insertAfter("div.ChoiceStructure
Hi Shashi, I have been using your feedback for this question, and it's great. Thank you again. I now have a question about how qualtrics records the subject's final decision. I have set the initial positions of the bars at 100 for A and 0 for B. Suppose we label the question q1. Qualtrics stores q1_1 and q1_2 for each bar. If an individual only changes the upper bar to 53 (for A), I get q1_1=53, and q1_2=0. If an individual only changes the lower bar to 44 (for B ), I get q1_1=100, and q1_2=44. However, if she changes both bars in the process of deciding (and clicking next), I get q1_1=53 and q1_2=44. It is impossible that this was her final decision, since the tokens have to add up to 100. But now I do not know what was her final decision before submitting. Was it q1_1=53 (and then q1_2=47) or q1_1=56 (since q1_2=44)? How can I know? How should I deal with this? Storing the "final" position submitted would be very helpful (crucial) for my survey. Thank you very much!
Thanks again! I have one, hopefully final question. I am using smaller multipliers, e.g., each token is worth 0.1 or 0.08, and I am having trouble rounding up the numbers. Depending on how I move the bars, many decimals appear (see image). I tried substituting ParseInt for ParseFloat, and also creating a new variable that would do the operations. Neither change worked. Would you have a suggestion as to how to fix the JS code? Thank you! !
Hi Shashi, Thanks again for your help. This is really really helpful! My question now looks great. I have a quick question: How do I set a different "custom start position"? If I would like the sliders to start at 100 for A, and 0 for B, where can I adjust this initial position on the javascript code? Thanks again!! Marta
This is extremely helpful. Thank you so much! I have a question related to the QSF file, which works great. If I would like to place the two pieces of text ("X points for PARTICIPANT A worth 1 cent each. Shet gets X cents." and "100-X points for PARTICIPANT B worth 2 cent each. She gets (100-X)*2 cents") below the two slider bards, how could I adjust their placement? I've tried to change insertBefore for insertAfter, but I think I may also need to change "tr.First", tried "tr.Last" and "tr.Second", but that doesn't work. What would you recommend? Thank you very much again!
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.