Hi, I want to use display logic (using answers from a previous question) to create a question (descriptive text) for some participants, currently when I do this it creates a page break so the descriptive text is on the next page. Is it possible to have the descriptive text shown on the same page as the question used for the logic? Any help would be much appreciated!
Hi, I would like to hide the next button until participants click on a line of text above the question as this will update the table. Once they press "click here to see the monetary rewards" I would like the next button to show again (shown in the picture below). I have used the code $('NextButton').hide() to hide the next button which works but I am unsure how to make it appear again. ! Any help you can offer would be greatly appreciated!
Hi, I would like to show participants a pop up if their answers to two questions are the same. I have found the code for a pop up (I have pasted this at the end of the question) which I have used but currently is shown to all participants. Participants answer 2 allocation questions, in the second question the custom start position is their allocations from the first one. If they leave this unchanged, I would like to have a pop up as shown in the second screen shot. If they make changes, I do not want this pop up to appear. ! ! Qualtrics.SurveyEngine.addOnReady(function() { const that=this; this.hideNextButton(); var btn = jQuery('<div id="Buttons"><input id="CustomButton" class="NextButton Button" title=" Next " type="button" name="NextButton" value=" Next " aria-label="Next"></div>') jQuery('#Buttons').append(btn); jQuery('#CustomButton').on('click', function(){ var txt; var e= jQuery("[id='QR~QID1']").val() var r =
Hi everyone I was wondering whether there is any way to achieve the following. It currently looks like this; ! but we'd like it to look like this; ! so I want to insert elements at the end of the each of the sliders in a constant sum slider question and on the left hand side as a form of axis label. Is there any way to do this? I don’t see any option to add javascript to the actual slider element of the question. Any help or clarification about whether this is possible would be greatly appreciated. Many thanks!
Dear All I am looking to take a respondent's currently selected (but not yet submitted) choice, perform a mathematical operation on it and then display it to the respondent on the same page as the question, so they can see the result before they submit their answers. The code I am currently using (placed in the HTML view section of a subsequent question that is on the same page) (note: I don't actually attempt to perform the mathematical operation yet as the choice is not being pulled properly - this is merely meant to display their currently selected choice at the moment); Code <p id="test"></p> <script> var myVar = setInterval(myFunction, 2000); function myFunction() { var y = parseInt(${q://QID21/ChoiceNumericEntryValue/1}); document.getElementById("test").innerHTML="The value of y is " + y + "."; } </script> Output *After 2 seconds, "The value of y is NaN." appears on the screen and doesn't change if the value of q:/
I have a constant sum question where participants allocate tokens between categories. Depending on how they allocate tokens to each category they gain a payoff. I have created the payoff using a maths operation with piped text, this currently has to have a page break otherwise it does not calculate, so is displayed on the next page. The images show the current set up. I would like to have the payoffs on the same page as the constant sum question, Qualtrics Support suggested Qualtrics Community for recommendations. I have seen a similar question and the answer suggests using JavaScript to dynamically update the page. Any help in how to achieve this will be greatly appreciated. ! ! Thank you!
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.