I'm trying to find an elegant way to update attributes for a subset of the records in a list.For simplicity, say a list has 100 records with many attributes, one being FriendOrFoe.I have the reference ID for 20 of those records that I need to add or change the value of FriendOrFoe. Some of the 20 already have the attribute, but some don't, so it would need to be created for them.Can I create a .csv file with the reference IDs and the value of FriendOrFoe of that list of 20 and "update" the list, without having to export all 100 records and replace the entire list?I certainly hope the answer is "Sure, and here's how...".Thanks!
I'm asking a "check all that apply" question (Question 1) and want to use items on the list of Selected Choices (e.g., the first item on the list) in a subsequent question (Question 2).I would think that there are two approaches: 1) use JavaScript in Question 1 to define the embedded fields for use in Question 2; or2) use a function in the text for Question 2 that refers back to the Selected Choices in Question 1 to get the values.I'm indifferent as to which approach I use - just one that works.When I tried approach 1, using the following JavaScript:Qualtrics.SurveyEngine.addOnPageSubmit(function (){ var choicesall = this.getSelectedChoices(); let choicesarray = choicesall.split(","); Qualtrics.SurveyEngine.setEmbeddedData('origstring', choicesall); Qualtrics.SurveyEngine.setEmbeddedData('numofchoices', choicesarray.length); for (i = 0; i < choicesarray.length; i++) { var selectedchoice = choicesarray[i] var embfieldname = "choicenumber" + i; Qualtrics.SurveyEngine.setEmbed
For a series of questions, I have a long series of "or" statements for the display logic for each question.I know how to enter the display logic, but it involves MANY mouse clicks where everything is the same except for the name of the quota involved.Is there a way - with Java Script or otherwise - to accomplish the same task (i.e., have the correct display logic), but to do it programmatically rather than through the GUI interface?Thanks!
I've seen a few posts on this topic, but none directly answered my question.I want people to sign up for a post-test, but a specified number of days need to elapse (say 10) between pre-test and post-test.The post-test date options are (for example): March 1, March 2, and March 3.The date of the person's pre-test will be embedded data from the distribution list.The question will be:Which date do you want to sign up for for your post-test?March 1March 2March 3with the Display logic for each of the 3 dates being something like:Display If (datevalue(20210301) - embedded pre-date >= 10)This is pseudocode, so I know this isn't correct syntax.In brief, I don't want to display an option less than 10 days after the person's pre-test.I'm trying to find the most elegant way to do this date math.Any suggestions or pointers to tutorials already explaining this?Thanks!
I need the respondents to enter a date.I know how to use validation to force a mm/dd/yyyy entry. There's got to be a way to allow m(m)/d(d)/yyyy entry. For example, April 2, 2000 could be entered as 4/2/2000 or 04/02/2000.Is this a place where JS would be needed? I'm sure others have run into this before.
I have a situation where I need to include a large number of display logic entries for a large number of response options. A simplified example:Do you want to come on: Monday Time 1 Time 2 Time 3 ... Tuesday Time 1 Time 2 Time 3 ...Where each time slot for every day has a quota.1) Is there a simple way to check if every quota has been filled for a given day other than a long list of "and/or" statements in the display logic for each day?2) If not, is there a way to enter the codes for all those "if" statements other than the GUI interface for entering Display Logic? In other words, is there another way to see the underlying code that's behind the GUI interface so I can enter all the "if" statements faster than a large number of mouse clicks?
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.