Hi everyone! I have some javascript code that I've written that takes survey question responses, calculates a score, and assigns a segment name as embedded data. It all works fine in preview mode - once survey responses are submitted, I can see that the embedded data segment field is filled out. However, when I tested this with a distribution (emailing myself), the embedded data field doesn't seem to get assigned, and shows up blank in my data. Any ideas why this might be the case? Thanks!
Hi! I'd like to automate my survey to make a question dynamically change based on the month and year. For example, if it's Jan/Feb/Mar, one version of the question would be asked (with different options), and if it's Apr/May/Jun, a different version would be asked.
Hi - I'm trying to automate some segmentation work that gets done based on survey questions. Basically, I have a number of segments, and the score for each one is calculated by multiplying the responses to specific questions by different values. Then, whichever segment has the highest score is the segment that the user is assigned to.I found this question that was previously asked that's quite similar, bu I'm not sure how to set up the calculations - would this be a formula variable or is there any way to set the calculation up before any responses are recorded?Identify the variable with the maximum valueAlso curious if anyone might know how to do this in Javascript.Thanks!
Hi everyone - I'm using Qualtric's content validation for a date (MM/DD/YYYY) to get survey respondents' birthday. Is there any way to be able to keep this input format and restrict the date range so that people can't choose a date after the current date, and not a date before, say, 01/01/1900? Thanks!
I know this question has been asked many times, but I've researched and tried everything and for some reason this still isn't working for me - trying to assign an embedded data field called UserAge from a question getting birthday in the format MM/DD/YYYY.1. I've set an embedded data field, UserAge at the start of my survey flow.2. I've placed a block below with the question asking for birthday, with the following JS:Qualtrics.SurveyEngine.addOnPageSubmit(function() { var age = moment().diff(moment(jQuery("#"+this.questionId+" .InputText").val()), 'years'); Qualtrics.SurveyEngine.setEmbeddedData('UserAge', age);});Have also tried the different codes on this thread (and looked at other threads as well):https://www.qualtrics.com/community/discussion/1397/javascript-to-calculate-users-age-based-on-dob-check-age-eligibility-provide-validation-alert/p13. After the block, I have a "Then" branch based on UserAge (if under 18, terminate).Am I missing anything? For some reason, I can't ge
Hi everyone - I can't seem to find any documentation about using embedded data for skip logic. Basically, I'm trying to get a participant's birthday and skip them to the end if they don't meet the age requirements. However, since I'm taking the birthday as the input variable and turning this into embedded data (age), I don't know how I can use the embedded data variable to skip right after the question (since the skip logic is based on the survey question, birthday). Thanks!
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.