rondev still not working :( text entry field labels for question 2 are still blank. Here's what it looks like now:Qualtrics.SurveyEngine.addOnload(function(){ jQuery("#"+this.questionId+" input[type=text]").flatpickr({minDate:new Date().fp_incr(-30),maxDate:new Date().fp_incr(-1),mode: "multiple",dateFormat: "m/d/y"});});Qualtrics.SurveyEngine.addOnReady(function(){var ed = ["day1", "day2", "day3", "day4", "day5", "day6", "day7", "day8", "day9", "day10", "day11", "day12", "day13", "day14", "day15", "day16", "day17", "day18", "day19", "day20", "day21", "day22", "day23", "day24", "day25", "day26", "day27", "day28", "day29", "day30", "day31"]; var arr = "${q://QID3/ChoiceTextEntryValue}".split(", "); jQuery("#NextButton").on('click',function(){ for(var i=0; i
rondev where would I put that? In the JS for the flatpickr question? Sorry...I'm not terribly familiar with JS either; I've just been trying to reverse-engineer from examples I've found online.Currently, the code for the flatpickr question looks like the following; I tried adding your code after the flatpickr portion (with the rest of the ED names filled out) but it didn't work (text field labels wound up blank). For what it's worth, the text field labels for the second question are set to "${e://Field/day#}" where "#" is equal to 1, 2, 3, ..., or 31:Qualtrics.SurveyEngine.addOnload(function(){ jQuery("#"+this.questionId+" input[type=text]").flatpickr({minDate:new Date().fp_incr(-30),maxDate:new Date().fp_incr(-1),mode: "multiple",dateFormat: "m/d/y"});});
rondev Sorry; I'm still fairly new to Qualtrics; what do you mean by ED? And for the Display logic, if I'm understanding correctly then you're saying to set it so that the text entry fields are only displayed if they contain something? Then I'm assuming I would pipe the dates from those fields in a subsequent question; again only asking them to report alcohol consumption for the fields that are not empty?Edit: I'm seeing now that ED means embedded data? If so then I created 31 ED like you said. Not sure though how to set their values from the flatpickr question like you said.Edit 2: Ok so I think I'm starting to get it now...so I have the 31 ED, with their values set to "${q://QID3/ChoiceTextEntryValue}" (QID3 being the flatpickr question). However, predictably this just sets the values for all of the EDs to all dates selected. So when I pipe the values for each ED to the text entry field labels for the following question, each label just shows all of the dates...you can see the survey
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.